fix previous discord button

This commit is contained in:
KGT1 2020-09-29 13:32:37 +02:00
parent 2dee338f22
commit 9f12d8bfc1

View File

@ -90,7 +90,7 @@ async function songPlayMessage (message, itemId) {
interactivemsghandler.init(message, itemIdDetails.Name, itemIdDetails.Artists[0] || "VA", imageURL, interactivemsghandler.init(message, itemIdDetails.Name, itemIdDetails.Artists[0] || "VA", imageURL,
`${jellyfinClientManager.getJellyfinClient().serverAddress()}/web/index.html#!/details?id=${itemIdDetails.AlbumId}`, `${jellyfinClientManager.getJellyfinClient().serverAddress()}/web/index.html#!/details?id=${itemIdDetails.AlbumId}`,
undefined, undefined,
((ticksToSeconds(playbackmanager.getPostitionTicks()) < 10) ? playbackmanager.previousTrack : playbackmanager.seek), ((ticksToSeconds(playbackmanager.getPostitionTicks()) > 10) ? playbackmanager.previousTrack : playbackmanager.seek),
playbackmanager.playPause, playbackmanager.playPause,
playbackmanager.stop, playbackmanager.stop,
playbackmanager.nextTrack, playbackmanager.nextTrack,