Skip to content

Commit

Permalink
Use Units.secondsToMillis
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Aug 30, 2024
1 parent 25787dc commit d4dd980
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private AudioTrack loadVideoFromApi(HttpInterface httpInterface, String videoId)
AudioTrackInfo info = new AudioTrackInfo(
videoData.get("name").text(),
videoData.get("uploader").get("name").textOrDefault("Unknown artist"),
videoData.get("duration").asLong(Units.DURATION_SEC_UNKNOWN) * 1000,
Units.secondsToMillis(videoData.get("duration").asLong(Units.DURATION_SEC_UNKNOWN)),
videoId,
false,
"https://vimeo.com/" + videoId,
Expand Down

0 comments on commit d4dd980

Please sign in to comment.