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:
parent
1e1100ef76
commit
1cfdc4547a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue