fix: remove shorts duration parsing
This commit is contained in:
parent
f618add384
commit
fd3e128f50
3 changed files with 6 additions and 89 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue