1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[spankbang] Fix formats extraction

This commit is contained in:
Sergey M․ 2016-01-27 21:49:39 +06:00
parent b0d21deda9
commit 9339774af2

View file

@ -34,7 +34,7 @@ class SpankBangIE(InfoExtractor):
'ext': 'mp4', 'ext': 'mp4',
'format_id': '%sp' % height, 'format_id': '%sp' % height,
'height': int(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) self._sort_formats(formats)
title = self._html_search_regex( title = self._html_search_regex(