[spankbang] Check formats (#8398)
authorSergey M․ <dstftw@gmail.com>
Fri, 5 Feb 2016 16:16:40 +0000 (22:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 5 Feb 2016 16:16:40 +0000 (22:16 +0600)
youtube_dl/extractor/spankbang.py

index b14c01230ae128323fb497c626afd1005062b62f..6299bfd9187b2e8085c72a502ac3b6cf83036654 100644 (file)
@@ -35,6 +35,7 @@ class SpankBangIE(InfoExtractor):
             'format_id': '%sp' % height,
             'height': int(height),
         } for height in re.findall(r'<(?:span|li|p)[^>]+[qb]_(\d+)p', webpage)]
+        self._check_formats(formats, video_id)
         self._sort_formats(formats)
 
         title = self._html_search_regex(