]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[adultswim] Fix extraction on python 2.6
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Sep 2015 20:24:14 +0000 (02:24 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Sep 2015 20:24:14 +0000 (02:24 +0600)
youtube_dl/extractor/adultswim.py

index 39335b8272295dbf2b640881cd29a6f5b99acaba..4327c2f6113887805c7f654859ac69f4dea8adf8 100644 (file)
@@ -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')