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:
parent
b73a2ec87e
commit
689c8a2e04
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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'],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue