From 4701b3ed0ccc8b105eab7a7db16625a1869fccbc Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 17 Jan 2025 17:21:35 -0600 Subject: [PATCH] Update audiobook rss feeds to increment pub dates in 1 minute intervals #3442 --- server/models/FeedEpisode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/models/FeedEpisode.js b/server/models/FeedEpisode.js index 0767577a..4133f691 100644 --- a/server/models/FeedEpisode.js +++ b/server/models/FeedEpisode.js @@ -139,7 +139,8 @@ class FeedEpisode extends Model { */ static getFeedEpisodeObjFromAudiobookTrack(book, pubDateStart, feed, slug, audioTrack, useChapterTitles, existingEpisodeId = null) { // Example: Fri, 04 Feb 2015 00:00:00 GMT - let timeOffset = isNaN(audioTrack.index) ? 0 : Number(audioTrack.index) * 1000 // Offset pubdate to ensure correct order + // Offset pubdate in 1 minute intervals to ensure correct order + let timeOffset = isNaN(audioTrack.index) ? 0 : Number(audioTrack.index) * 60000 let episodeId = existingEpisodeId || uuidv4() // e.g. Track 1 will have a pub date before Track 2