mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 03:32:05 +00:00
[afreecatv] Fix extraction (closes #15755)
This commit is contained in:
parent
86c8cfc555
commit
f241a97312
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue