From 689c8a2e04baa039569c30f76355371cb707ceea Mon Sep 17 00:00:00 2001 From: Vitaly Khabarov Date: Tue, 18 Oct 2022 19:27:33 +0400 Subject: [PATCH] Revert changes to test min_filesize --- test/test_download.py | 2 +- yt_dlp/extractor/rts.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_download.py b/test/test_download.py index d0707096b..ee53efa1c 100755 --- a/test/test_download.py +++ b/test/test_download.py @@ -220,7 +220,7 @@ def try_rm_tcs_files(tcs=None): expected_minsize = tc.get('file_minsize', 10000) if expected_minsize is not None: if params.get('test'): - expected_minsize = max(expected_minsize, 500) + expected_minsize = max(expected_minsize, 10000) got_fsize = os.path.getsize(tc_filename) assertGreaterEqual( self, got_fsize, expected_minsize, diff --git a/yt_dlp/extractor/rts.py b/yt_dlp/extractor/rts.py index 5e1f7f9c5..d3308514a 100644 --- a/yt_dlp/extractor/rts.py +++ b/yt_dlp/extractor/rts.py @@ -21,7 +21,6 @@ class RTSIE(SRGSSRIE): { 'url': 'http://www.rts.ch/archives/tv/divers/3449373-les-enfants-terribles.html', 'md5': '6ab2a551f356f9eb1f437e85685b34a4', - 'file_minsize': 500, 'info_dict': { 'id': '3449373', 'display_id': 'les-enfants-terribles', @@ -35,6 +34,7 @@ class RTSIE(SRGSSRIE): 'thumbnail': r're:^https?://.*\.image', 'view_count': int, }, + 'params': {'skip_download': 'm3u8'}, 'expected_warnings': ['Unable to download f4m manifest', 'Failed to download m3u8 information'], }, { @@ -71,7 +71,6 @@ class RTSIE(SRGSSRIE): { 'url': 'http://www.rts.ch/video/info/journal-continu/5745356-londres-cachee-par-un-epais-smog.html', 'md5': '2b9939428ad643e64d465658900105fa', - 'file_minsize': 500, 'info_dict': { 'id': '5745356', 'display_id': 'londres-cachee-par-un-epais-smog', @@ -85,6 +84,7 @@ class RTSIE(SRGSSRIE): 'thumbnail': r're:^https?://.*\.image', 'view_count': int, }, + 'params': {'skip_download': 'm3u8'}, 'expected_warnings': ['Unable to download f4m manifest', 'Failed to download m3u8 information'], }, {