mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:10:09 +01:00
[Crunchyroll] Fix extraction on Python 2.6
XPath with recursive children selection not supported
This commit is contained in:
parent
4d6a3ff411
commit
a9b0d4e1f4
@ -263,8 +263,8 @@ def _real_extract(self, url):
|
|||||||
streamdata = self._download_xml(
|
streamdata = self._download_xml(
|
||||||
streamdata_req, video_id,
|
streamdata_req, video_id,
|
||||||
note='Downloading media info for %s' % video_format)
|
note='Downloading media info for %s' % video_format)
|
||||||
video_url = streamdata.find('.//host').text
|
video_url = streamdata.find('./host').text
|
||||||
video_play_path = streamdata.find('.//file').text
|
video_play_path = streamdata.find('./file').text
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'play_path': video_play_path,
|
'play_path': video_play_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user