Sfoglia il codice sorgente

[itv] Lower preference for rtmp formats (closes #12759)

Sergey M․ 8 anni fa
parent
commit
5935ef3c5d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      youtube_dl/extractor/itv.py

+ 2 - 0
youtube_dl/extractor/itv.py

@@ -122,6 +122,8 @@ class ITVIE(InfoExtractor):
                 'play_path': play_path,
                 'play_path': play_path,
                 'tbr': tbr,
                 'tbr': tbr,
                 'ext': 'flv',
                 'ext': 'flv',
+                # rtmp formats are now stop downloading at ~72MiB
+                'preference': -10,
             })
             })
 
 
         ios_playlist_url = params.get('data-video-playlist')
         ios_playlist_url = params.get('data-video-playlist')