Browse Source

[afreecatv] Fix extraction (closes #15755)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
f241a97312
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/afreecatv.py

+ 1
- 1
youtube_dl/extractor/afreecatv.py View File

@ -200,7 +200,7 @@ class AfreecaTVIE(InfoExtractor):
raise ExtractorError(
'%s said: %s' % (self.IE_NAME, flag), expected=True)
video_element = video_xml.findall(compat_xpath('./track/video'))[1]
video_element = video_xml.findall(compat_xpath('./track/video'))[-1]
if video_element is None or video_element.text is None:
raise ExtractorError('Specified AfreecaTV video does not exist',
expected=True)


Loading…
Cancel
Save