Merge pull request #258 from mvn23/proper-content-length

Improve song length handling when transcoding
This commit is contained in:
Carey Metcalfe 2019-10-03 20:21:35 -04:00 committed by GitHub
commit 1689e0d23e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,11 +114,11 @@ angular.module('jamstash.player.directive', ['jamstash.player.service', 'jamstas
}
var media = {};
if (newSong.suffix === 'oga') {
media= { oga: newSong.url };
media= { oga: newSong.url, duration: newSong.duration };
} else if (newSong.suffix === 'm4a') {
media= { m4a: newSong.url };
media= { m4a: newSong.url, duration: newSong.duration };
} else if (newSong.suffix === 'mp3') {
media= { mp3: newSong.url };
media= { mp3: newSong.url, duration: newSong.duration };
}
$player.jPlayer('setMedia', media);
if (globals.settings.Jukebox) {