Browse Source

[nova] Minor style improvement

totalwebcasting
Slava Shklyaev 10 years ago
parent
commit
a00234f1c5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/nova.py

+ 1
- 1
youtube_dl/extractor/nova.py View File

@ -132,7 +132,7 @@ class NovaIE(InfoExtractor):
config = self._download_json( config = self._download_json(
config_url, display_id, config_url, display_id,
'Downloading config JSON', 'Downloading config JSON',
transform_source=lambda s: re.sub(r'var\s+[\da-zA-Z_]+\s*=\s*({.+?});', r'\1', s))
transform_source=lambda s: s[s.index('{'):s.rindex('}') + 1])
mediafile = config['mediafile'] mediafile = config['mediafile']
video_url = mediafile['src'] video_url = mediafile['src']


Loading…
Cancel
Save