0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-10-31 23:02:40 +00:00

Revert changes to test min_filesize

This commit is contained in:
Vitaly Khabarov 2022-10-18 19:27:33 +04:00
parent b73a2ec87e
commit 689c8a2e04
2 changed files with 3 additions and 3 deletions

View file

@ -220,7 +220,7 @@ def try_rm_tcs_files(tcs=None):
expected_minsize = tc.get('file_minsize', 10000) expected_minsize = tc.get('file_minsize', 10000)
if expected_minsize is not None: if expected_minsize is not None:
if params.get('test'): if params.get('test'):
expected_minsize = max(expected_minsize, 500) expected_minsize = max(expected_minsize, 10000)
got_fsize = os.path.getsize(tc_filename) got_fsize = os.path.getsize(tc_filename)
assertGreaterEqual( assertGreaterEqual(
self, got_fsize, expected_minsize, self, got_fsize, expected_minsize,

View file

@ -21,7 +21,6 @@ class RTSIE(SRGSSRIE):
{ {
'url': 'http://www.rts.ch/archives/tv/divers/3449373-les-enfants-terribles.html', 'url': 'http://www.rts.ch/archives/tv/divers/3449373-les-enfants-terribles.html',
'md5': '6ab2a551f356f9eb1f437e85685b34a4', 'md5': '6ab2a551f356f9eb1f437e85685b34a4',
'file_minsize': 500,
'info_dict': { 'info_dict': {
'id': '3449373', 'id': '3449373',
'display_id': 'les-enfants-terribles', 'display_id': 'les-enfants-terribles',
@ -35,6 +34,7 @@ class RTSIE(SRGSSRIE):
'thumbnail': r're:^https?://.*\.image', 'thumbnail': r're:^https?://.*\.image',
'view_count': int, 'view_count': int,
}, },
'params': {'skip_download': 'm3u8'},
'expected_warnings': ['Unable to download f4m manifest', 'Failed to download m3u8 information'], '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', 'url': 'http://www.rts.ch/video/info/journal-continu/5745356-londres-cachee-par-un-epais-smog.html',
'md5': '2b9939428ad643e64d465658900105fa', 'md5': '2b9939428ad643e64d465658900105fa',
'file_minsize': 500,
'info_dict': { 'info_dict': {
'id': '5745356', 'id': '5745356',
'display_id': 'londres-cachee-par-un-epais-smog', 'display_id': 'londres-cachee-par-un-epais-smog',
@ -85,6 +84,7 @@ class RTSIE(SRGSSRIE):
'thumbnail': r're:^https?://.*\.image', 'thumbnail': r're:^https?://.*\.image',
'view_count': int, 'view_count': int,
}, },
'params': {'skip_download': 'm3u8'},
'expected_warnings': ['Unable to download f4m manifest', 'Failed to download m3u8 information'], 'expected_warnings': ['Unable to download f4m manifest', 'Failed to download m3u8 information'],
}, },
{ {