This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
[BUG WARN] - Video duration is incorrect when fetched with popyt #7
Labels
bug
Something isn't working
Descripción del problema
Hello, creator of popyt here. There is an error with how the duration is set with popyt on videos here: https://github.com/StarArmyDev/starmusic/blob/main/src/Music.ts#L604
The issue is that popyt separates the length of the video into two properties,
video.minutes
andvideo.seconds
. Theminutes
property is how many minutes are in the video, and theseconds
property is how many seconds are after that. For example, this would be formatted as${video.minutes}:${video.seconds}
. The program treats it as if thevideo.seconds
property contains the total number of seconds in the video.Thanks for using popyt!
The text was updated successfully, but these errors were encountered: