projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[extractor/common] improve jwplayer relative url handling(closes #18892)
[youtube-dl]
/
youtube_dl
/
extractor
/
netzkino.py
diff --git
a/youtube_dl/extractor/netzkino.py
b/youtube_dl/extractor/netzkino.py
index 93567d1e38bc7da5ea2e621cf1f3adb848ef3461..aec3026b12755e38d3ace0e8978a72409dcc562c 100644
(file)
--- a/
youtube_dl/extractor/netzkino.py
+++ b/
youtube_dl/extractor/netzkino.py
@@
-25,10
+25,13
@@
class NetzkinoIE(InfoExtractor):
'comments': 'mincount:3',
'description': 'md5:1eddeacc7e62d5a25a2d1a7290c64a28',
'upload_date': '20120813',
'comments': 'mincount:3',
'description': 'md5:1eddeacc7e62d5a25a2d1a7290c64a28',
'upload_date': '20120813',
- 'thumbnail': 're:https?://.*\.jpg$',
+ 'thumbnail':
r
're:https?://.*\.jpg$',
'timestamp': 1344858571,
'age_limit': 12,
},
'timestamp': 1344858571,
'age_limit': 12,
},
+ 'params': {
+ 'skip_download': 'Download only works from Germany',
+ }
}
def _real_extract(self, url):
}
def _real_extract(self, url):
@@
-46,7
+49,7
@@
class NetzkinoIE(InfoExtractor):
'http://www.netzkino.de/beta/dist/production.min.js', video_id,
note='Downloading player code')
avo_js = self._search_regex(
'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)
production_js, 'URL templates')
templates = self._parse_json(
avo_js, video_id, transform_source=js_to_json)