[nova] Fix Python 2.6 compatability issue
authorSlava Shklyaev <shk.slava@gmail.com>
Tue, 2 Jun 2015 15:17:33 +0000 (18:17 +0300)
committerSlava Shklyaev <shk.slava@gmail.com>
Tue, 2 Jun 2015 15:30:25 +0000 (18:30 +0300)
youtube_dl/extractor/nova.py

index 8360a65d9fcac6b065c4625713446bb901b59b13..7e3498eea5b092f44ed1582f958e74e1d923b32e 100644 (file)
@@ -141,7 +141,7 @@ class NovaIE(InfoExtractor):
         mediafile = config['mediafile']
         video_url = mediafile['src']
         ext = determine_ext(video_url)
-        video_url = video_url.replace('&{}:'.format(ext), '')
+        video_url = video_url.replace('&%s:' % ext, '')
 
         title = mediafile.get('meta', {}).get('title') or self._og_search_title(webpage)
         description = clean_html(self._og_search_description(webpage, default=None))