0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[joj] Fix extraction (closes #18280)

This commit is contained in:
Alexander Seiler 2018-11-24 16:14:27 +01:00 committed by Sergey M
parent 641e86e3cf
commit d19600df07

View file

@ -61,7 +61,7 @@ def _real_extract(self, url):
bitrates = self._parse_json(
self._search_regex(
r'(?s)bitrates\s*=\s*({.+?});', webpage, 'bitrates',
r'(?s)(?:src|bitrates)\s*=\s*({.+?});', webpage, 'bitrates',
default='{}'),
video_id, transform_source=js_to_json, fatal=False)