From e362456895e2342effa625647858aa55550b5480 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 31 Aug 2022 15:14:33 -0500 Subject: [PATCH] Update:Reverse order for audiobook RSS feed episodes #952 --- server/objects/FeedEpisode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/objects/FeedEpisode.js b/server/objects/FeedEpisode.js index 9ac0d6d0..28a60e78 100644 --- a/server/objects/FeedEpisode.js +++ b/server/objects/FeedEpisode.js @@ -86,7 +86,7 @@ class FeedEpisode { setFromAudiobookTrack(libraryItem, serverAddress, slug, audioTrack, meta) { // Example: Fri, 04 Feb 2015 00:00:00 GMT const timeOffset = isNaN(audioTrack.index) ? 0 : (Number(audioTrack.index) * 1000) // Offset pubdate to ensure correct order - const audiobookPubDate = date.format(new Date(libraryItem.addedAt + timeOffset), 'ddd, DD MMM YYYY HH:mm:ss [GMT]') + const audiobookPubDate = date.format(new Date(libraryItem.addedAt - timeOffset), 'ddd, DD MMM YYYY HH:mm:ss [GMT]') const contentUrl = `/feed/${slug}/item/${audioTrack.index}/${audioTrack.metadata.filename}` const media = libraryItem.media