0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-03 03:57:26 +00:00

[afreecatv] Fix extraction (closes #15755)

This commit is contained in:
Sergey M․ 2018-03-04 03:01:58 +07:00
parent 86c8cfc555
commit f241a97312
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -200,7 +200,7 @@ def _real_extract(self, url):
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)