Fix song duration (#31)

Sometimes an extra Zero counts
This commit is contained in:
Lag 2020-06-21 12:03:48 +05:00 committed by GitHub
parent 5669581708
commit ee498873f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
module.exports = Song;