Skip to content

Commit 1cfdc45

Browse files
StypoxTobiGr
andauthored
Update extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
Co-Authored-By: Tobias Groza <TobiGr@users.noreply.github.com>
1 parent 1e1100e commit 1cfdc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public long getLength() throws ParsingException {
296296
.getArray("formats")
297297
.getObject(0)
298298
.getString("approxDurationMs");
299-
return Math.round(Long.parseLong(durationMs)/1000.0f);
299+
return Math.round(Long.parseLong(durationMs) / 1000f);
300300
} catch (Exception ignored) {
301301
throw new ParsingException("Could not get duration", e);
302302
}

0 commit comments

Comments
 (0)