Update extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Co-Authored-By: Tobias Groza <TobiGr@users.noreply.github.com>
This commit is contained in:
Stypox 2020-01-20 22:52:48 +01:00 committed by GitHub
parent 1e1100ef76
commit 1cfdc4547a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
.getArray("formats")
.getObject(0)
.getString("approxDurationMs");
return Math.round(Long.parseLong(durationMs)/1000.0f);
return Math.round(Long.parseLong(durationMs) / 1000f);
} catch (Exception ignored) {
throw new ParsingException("Could not get duration", e);
}