diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/download/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/download/mod.rs b/src/download/mod.rs index 2a19a3a..d1de3ff 100644 --- a/src/download/mod.rs +++ b/src/download/mod.rs @@ -183,7 +183,12 @@ impl Downloader { } else if let Some(val) = result.filesize_approx { val } else { - bail!("Failed to find a filesize for video: '{}'", video.title); + let hardcoded_default = Bytes::from_str("250 MiB").expect("This is hardcoded"); + error!( + "Failed to find a filesize for video: '{}' (Using hardcoded value of {})", + video.title, hardcoded_default + ); + hardcoded_default.as_u64() }; assert_eq!( |