]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[spankbang] Extend format id regex (Closes #8398)
authorSergey M․ <dstftw@gmail.com>
Fri, 5 Feb 2016 16:16:12 +0000 (22:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 5 Feb 2016 16:16:12 +0000 (22:16 +0600)
youtube_dl/extractor/spankbang.py

index 3cfa671ed40722ceaa7da647a0b2bf0104a74de5..b14c01230ae128323fb497c626afd1005062b62f 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|li)[^>]+q_(\d+)p', webpage)]
+        } for height in re.findall(r'<(?:span|li|p)[^>]+[qb]_(\d+)p', webpage)]
         self._sort_formats(formats)
 
         title = self._html_search_regex(