[rtbf] fix extraction for python 3.2 and older
authorRemita Amine <remitamine@gmail.com>
Mon, 18 Jun 2018 18:08:54 +0000 (19:08 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 18 Jun 2018 18:10:43 +0000 (19:10 +0100)
youtube_dl/extractor/rtbf.py

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