From: Sergey M․ Date: Sat, 5 Sep 2015 20:24:14 +0000 (+0600) Subject: [adultswim] Fix extraction on python 2.6 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=eb387896e90d3c0b9043169769783796c564f4a0;p=youtube-dl [adultswim] Fix extraction on python 2.6 --- diff --git a/youtube_dl/extractor/adultswim.py b/youtube_dl/extractor/adultswim.py index 39335b827..4327c2f61 100644 --- a/youtube_dl/extractor/adultswim.py +++ b/youtube_dl/extractor/adultswim.py @@ -156,7 +156,7 @@ class AdultSwimIE(InfoExtractor): xpath_text(idoc, './/trt', 'segment duration').strip()) formats = [] - file_els = idoc.findall('.//files/file') + file_els = idoc.findall('.//files/file') or idoc.findall('./files/file') for file_el in file_els: bitrate = file_el.attrib.get('bitrate')