aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-03-04 03:01:58 +0700
committerSergey M․ <dstftw@gmail.com>2018-03-04 03:01:58 +0700
commitf241a97312238a790f7eed927fd3934c491a8fec (patch)
tree574bd2949397d97ebb3e003eb4ebdb6d4321beaf /youtube_dl/extractor
parent86c8cfc5558fd73e2c8bd62ea256200ce30e017e (diff)
[afreecatv] Fix extraction (closes #15755)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/afreecatv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py
index 148a0999c..fe499a35a 100644
--- a/youtube_dl/extractor/afreecatv.py
+++ b/youtube_dl/extractor/afreecatv.py
@@ -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)