mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Audiobook RSS feed offset pubDate for each track to ensure correct order #888
This commit is contained in:
		
							parent
							
								
									7a14b49aea
								
							
						
					
					
						commit
						1bfa4b31f2
					
				| @ -85,7 +85,8 @@ class FeedEpisode { | ||||
| 
 | ||||
|   setFromAudiobookTrack(libraryItem, serverAddress, slug, audioTrack, meta) { | ||||
|     // Example: <pubDate>Fri, 04 Feb 2015 00:00:00 GMT</pubDate>
 | ||||
|     const audiobookPubDate = date.format(new Date(libraryItem.addedAt), 'ddd, DD MMM YYYY HH:mm:ss [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 contentUrl = `/feed/${slug}/item/${audioTrack.index}/${audioTrack.metadata.filename}` | ||||
|     const media = libraryItem.media | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user