mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-31 23:57:15 +02:00
Add:Downloaded filter for podcast episodes #959
Fix:More menu button not working for podcasts with some episodes downloaded
This commit is contained in:
@@ -116,6 +116,10 @@ export default {
|
||||
{
|
||||
text: 'Complete',
|
||||
value: 'complete'
|
||||
},
|
||||
{
|
||||
text: 'Downloaded',
|
||||
value: 'downloaded'
|
||||
}
|
||||
],
|
||||
fetchingRSSFeed: false,
|
||||
@@ -141,10 +145,10 @@ export default {
|
||||
return this.$store.state.networkConnected
|
||||
},
|
||||
libraryItemId() {
|
||||
return this.libraryItem ? this.libraryItem.id : null
|
||||
return this.libraryItem?.id || null
|
||||
},
|
||||
media() {
|
||||
return this.libraryItem ? this.libraryItem.media || {} : {}
|
||||
return this.libraryItem?.media || {}
|
||||
},
|
||||
mediaMetadata() {
|
||||
return this.media.metadata || {}
|
||||
@@ -154,11 +158,14 @@ export default {
|
||||
},
|
||||
episodesFiltered() {
|
||||
return this.episodesCopy.filter((ep) => {
|
||||
if (this.filterKey === 'downloaded') {
|
||||
return !!this.localEpisodeMap[ep.id]
|
||||
}
|
||||
var mediaProgress = this.getEpisodeProgress(ep)
|
||||
if (this.filterKey === 'incomplete') {
|
||||
return !mediaProgress || !mediaProgress.isFinished
|
||||
return !mediaProgress?.isFinished
|
||||
} else if (this.filterKey === 'complete') {
|
||||
return mediaProgress && mediaProgress.isFinished
|
||||
return mediaProgress?.isFinished
|
||||
} else if (this.filterKey === 'inProgress') {
|
||||
return mediaProgress && !mediaProgress.isFinished
|
||||
} else if (this.filterKey === 'all') {
|
||||
|
||||
Reference in New Issue
Block a user