mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-18 09:49:36 +00:00
Single file audiobook rss feed naming logic moved to FeedEpisode.js
This commit is contained in:
parent
1f02cbddd3
commit
12abb1731c
2 changed files with 10 additions and 39 deletions
|
|
@ -101,11 +101,7 @@ class Feed {
|
|||
feedEpisode.setFromPodcastEpisode(libraryItem, serverAddress, slug, episode, this.meta)
|
||||
this.episodes.push(feedEpisode)
|
||||
})
|
||||
} else if (media.tracks.length == 1) { // SINGLE FILE AUDIOBOOKS
|
||||
var feedEpisode = new FeedEpisode()
|
||||
feedEpisode.setFromSingleAudiobookTrack(libraryItem, serverAddress, slug, media.tracks[0], this.meta)
|
||||
this.episodes.push(feedEpisode)
|
||||
} else { // MULTI-FILE AUDIOBOOKS
|
||||
} else { // AUDIOBOOK EPISODES
|
||||
media.tracks.forEach((audioTrack) => {
|
||||
var feedEpisode = new FeedEpisode()
|
||||
feedEpisode.setFromAudiobookTrack(libraryItem, serverAddress, slug, audioTrack, this.meta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue