mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-23 00:44:10 +01:00
Update podcasts to new library item model
This commit is contained in:
1 parent
0357dc90d4
commit
69d1744496
11 files changed
+235
-141
No files matched your search
@@ -193,11 +193,6 @@ class Podcast {
|
||||
checkHasEpisode(episodeId) {
|
||||
return this.episodes.some((ep) => ep.id === episodeId)
|
||||
}
|
||||
checkHasEpisodeByFeedEpisode(feedEpisode) {
|
||||
const guid = feedEpisode.guid
|
||||
const url = feedEpisode.enclosure.url
|
||||
return this.episodes.some((ep) => (ep.guid && ep.guid === guid) || ep.checkEqualsEnclosureUrl(url))
|
||||
}
|
||||
|
||||
addPodcastEpisode(podcastEpisode) {
|
||||
this.episodes.push(podcastEpisode)
|
||||
|
||||
Reference in new issue
Block a user