From: Slava Shklyaev Date: Tue, 2 Jun 2015 09:57:03 +0000 (+0300) Subject: [nova] Minor style improvement X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a00234f1c517d077a237da576be638fef980d79e;p=youtube-dl [nova] Minor style improvement --- 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']