diff options
author | Slava Shklyaev <shk.slava@gmail.com> | 2015-06-02 12:57:03 +0300 |
---|---|---|
committer | Slava Shklyaev <shk.slava@gmail.com> | 2015-06-02 12:57:03 +0300 |
commit | a00234f1c517d077a237da576be638fef980d79e (patch) | |
tree | 25c904a63c90f1d2841704d6b6436da71186693f /youtube_dl/extractor/nova.py | |
parent | 34c0f95db273ac5e7a7f8a6d23a3f90ceadf4695 (diff) |
[nova] Minor style improvement
Diffstat (limited to 'youtube_dl/extractor/nova.py')
-rw-r--r-- | youtube_dl/extractor/nova.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nova.py b/youtube_dl/extractor/nova.py index 140312f9c..10957e5fa 100644 --- a/youtube_dl/extractor/nova.py +++ b/youtube_dl/extractor/nova.py @@ -132,7 +132,7 @@ class NovaIE(InfoExtractor): config = self._download_json( config_url, display_id, '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'] video_url = mediafile['src'] |