[spankbang] Fix formats extraction
authorSergey M․ <dstftw@gmail.com>
Wed, 27 Jan 2016 15:49:39 +0000 (21:49 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 27 Jan 2016 15:49:39 +0000 (21:49 +0600)
youtube_dl/extractor/spankbang.py

index 7f060b15b69908a71ff45a44f13e92ab0089ff5b..a67db59057d9b3d732899d016b8b87d1694236b9 100644 (file)
@@ -34,7 +34,7 @@ class SpankBangIE(InfoExtractor):
             'ext': 'mp4',
             'format_id': '%sp' % height,
             'height': int(height),
-        } for height in re.findall(r'<span[^>]+q_(\d+)p', webpage)]
+        } for height in re.findall(r'<(?:span|li)[^>]+q_(\d+)p', webpage)]
         self._sort_formats(formats)
 
         title = self._html_search_regex(