瀏覽代碼

[rtbf] fix extraction for python 3.2 and older

Remita Amine 7 年之前
父節點
當前提交
18806e3b6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/rtbf.py

+ 1 - 1
youtube_dl/extractor/rtbf.py

@@ -99,7 +99,7 @@ class RTBFIE(InfoExtractor):
         http_url = data.get('url')
         http_url = data.get('url')
         if formats and http_url and re.search(height_re, http_url):
         if formats and http_url and re.search(height_re, http_url):
             http_url = fix_url(http_url)
             http_url = fix_url(http_url)
-            for m3u8_f in formats.copy():
+            for m3u8_f in formats[:]:
                 height = m3u8_f.get('height')
                 height = m3u8_f.get('height')
                 if not height:
                 if not height:
                     continue
                     continue