aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2022-12-05 03:59:56 +0530
committerIndrajith K L2022-12-05 03:59:56 +0530
commitde430cf16660a3d65992ffa7f509e6dfbdae0c57 (patch)
treef9886c64b53b3f3d5a18a45133643ec7e6710b7b
parentc3721f2f557d43f6fd25d39f3c2fecd332895af3 (diff)
downloadretrowave-player-de430cf16660a3d65992ffa7f509e6dfbdae0c57.tar.gz
retrowave-player-de430cf16660a3d65992ffa7f509e6dfbdae0c57.tar.bz2
retrowave-player-de430cf16660a3d65992ffa7f509e6dfbdae0c57.zip
Fixes Duration in playlist
* Removes Decimals from duration
-rw-r--r--player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.js b/player.js
index d1071f2..9fb7b17 100644
--- a/player.js
+++ b/player.js
@@ -204,7 +204,7 @@
historyArray.forEach((musicData) => {
playListData = `${playListData}
-#EXTINF:${musicData.duration/600}, ${musicData.title}
+#EXTINF:${Math.ceil(musicData.duration/600)}, ${musicData.title}
https://retrowave.ru/${musicData.streamUrl}
`;
});