mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-15 14:50:33 +05:30
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")
|
.getArray("formats")
|
||||||
.getObject(0)
|
.getObject(0)
|
||||||
.getString("approxDurationMs");
|
.getString("approxDurationMs");
|
||||||
return Math.round(Long.parseLong(durationMs)/1000.0f);
|
return Math.round(Long.parseLong(durationMs) / 1000f);
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
throw new ParsingException("Could not get duration", e);
|
throw new ParsingException("Could not get duration", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user