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

Fix URL template extraction for netzkino. Fixes #5614

This commit is contained in:
blissland 2015-05-08 10:40:25 +01:00 committed by Jaime Marquínez Ferrándiz
parent 249962ffa2
commit 43837189c1

View file

@ -49,7 +49,7 @@ def _real_extract(self, url):
'http://www.netzkino.de/beta/dist/production.min.js', video_id,
note='Downloading player code')
avo_js = self._search_regex(
r'window\.avoCore\s*=.*?urlTemplate:\s*(\{.*?"\})',
r'var urlTemplate=(\{.*?"\})',
production_js, 'URL templates')
templates = self._parse_json(
avo_js, video_id, transform_source=js_to_json)