소스 검색

[nova] Fix Python 2.6 compatability issue

Slava Shklyaev 10 년 전
부모
커밋
b0cda32f72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/extractor/nova.py

+ 1 - 1
youtube_dl/extractor/nova.py

@@ -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))