From ee498873f048592dad2dfd09e87b3e19761d225a Mon Sep 17 00:00:00 2001 From: Lag <49319669+Lag01@users.noreply.github.com> Date: Sun, 21 Jun 2020 12:03:48 +0500 Subject: [PATCH] Fix song duration (#31) Sometimes an extra Zero counts --- src/Song.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Song.js b/src/Song.js index d2794ed..a168e3e 100644 --- a/src/Song.js +++ b/src/Song.js @@ -16,7 +16,7 @@ class Song { * Song duration. * @type {Number} */ - this.duration = ((video.duration.hours*3600)+(video.duration.minutes*60)+(video.duration.seconds)) * 100; + this.duration = ((video.duration.hours*3600)+(video.duration.minutes*60)+(video.duration.seconds)) * 1000; /** * Raw video object from Simple Youtube API * @type {Video} @@ -55,4 +55,4 @@ class Song { } }; -module.exports = Song; \ No newline at end of file +module.exports = Song;