Fix YouTube video duration parsing
This commit is contained in:
parent
98055a3c3c
commit
e39147202c
1 changed files with 2 additions and 2 deletions
|
@ -142,9 +142,9 @@ public class YoutubeParsingHelper {
|
||||||
default:
|
default:
|
||||||
throw new ParsingException("Error duration string with unknown format: " + input);
|
throw new ParsingException("Error duration string with unknown format: " + input);
|
||||||
}
|
}
|
||||||
return (((Long.parseLong(Utils.removeNonDigitCharacters(days)) * 24)
|
return ((((Long.parseLong(Utils.removeNonDigitCharacters(days)) * 24)
|
||||||
+ Long.parseLong(Utils.removeNonDigitCharacters(hours)) * 60)
|
+ Long.parseLong(Utils.removeNonDigitCharacters(hours)) * 60)
|
||||||
+ Long.parseLong(Utils.removeNonDigitCharacters(minutes)) * 60)
|
+ Long.parseLong(Utils.removeNonDigitCharacters(minutes))) * 60)
|
||||||
+ Long.parseLong(Utils.removeNonDigitCharacters(seconds));
|
+ Long.parseLong(Utils.removeNonDigitCharacters(seconds));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue