From 9f12d8bfc1d0d4b8e366d1589d51d221afa59884 Mon Sep 17 00:00:00 2001 From: KGT1 Date: Tue, 29 Sep 2020 13:32:37 +0200 Subject: [PATCH] fix previous discord button --- src/messagehandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messagehandler.js b/src/messagehandler.js index b039841..1249d1d 100644 --- a/src/messagehandler.js +++ b/src/messagehandler.js @@ -90,7 +90,7 @@ async function songPlayMessage (message, itemId) { interactivemsghandler.init(message, itemIdDetails.Name, itemIdDetails.Artists[0] || "VA", imageURL, `${jellyfinClientManager.getJellyfinClient().serverAddress()}/web/index.html#!/details?id=${itemIdDetails.AlbumId}`, undefined, - ((ticksToSeconds(playbackmanager.getPostitionTicks()) < 10) ? playbackmanager.previousTrack : playbackmanager.seek), + ((ticksToSeconds(playbackmanager.getPostitionTicks()) > 10) ? playbackmanager.previousTrack : playbackmanager.seek), playbackmanager.playPause, playbackmanager.stop, playbackmanager.nextTrack,