fix: remove shorts duration parsing

This commit is contained in:
ThetaDev 2024-01-18 16:03:15 +01:00
parent f618add384
commit fd3e128f50
No known key found for this signature in database
GPG key ID: 649CA4EBDC338394
3 changed files with 6 additions and 89 deletions

View file

@ -322,6 +322,10 @@ pub fn parse_video_duration(lang: Language, video_duration: &str) -> Option<u32>
let parts = split_duration_txt(video_duration, matches!(lang, Language::Si | Language::Sw));
let mut secs = 0;
if parts.is_empty() {
return None;
}
for part in parts {
let mut n = if part.digits.is_empty() {
1