From 8d285a2caaf1a46a49037db6be16336ebcdfd22c Mon Sep 17 00:00:00 2001 From: bashonly Date: Sun, 23 Mar 2025 17:20:04 -0500 Subject: [PATCH] add `source_preference` to tests Authored by: bashonly --- test/test_InfoExtractor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index d275b067c4..c6ff6209a8 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -646,6 +646,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/ 'ext': 'mp4', 'protocol': 'm3u8_native', 'audio_ext': 'mp4', + 'source_preference': 0, }, { # 192kbps (bitrate not provided in m3u8) 'format_id': 'aud3-English', @@ -655,6 +656,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/ 'ext': 'mp4', 'protocol': 'm3u8_native', 'audio_ext': 'mp4', + 'source_preference': 1, }, { # 384kbps (bitrate not provided in m3u8); sorted as best because it's grouped with the highest bitrate video track 'format_id': 'aud2-English', @@ -664,6 +666,7 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/ 'ext': 'mp4', 'protocol': 'm3u8_native', 'audio_ext': 'mp4', + 'source_preference': 2, }, { 'format_id': '530', 'url': 'https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/v2/prog_index.m3u8',