mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-29 18:32:42 -04:00
Update podcasts to new library item model
This commit is contained in:
@@ -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