diff --git a/client/components/app/BookShelfCategorized.vue b/client/components/app/BookShelfCategorized.vue
index 4bf8cfbbf..8c6804625 100644
--- a/client/components/app/BookShelfCategorized.vue
+++ b/client/components/app/BookShelfCategorized.vue
@@ -217,16 +217,6 @@ export default {
})
}
- if (this.results.episodes?.length) {
- shelves.push({
- id: 'episodes',
- label: 'Episodes',
- labelStringKey: 'LabelEpisodes',
- type: 'episode',
- entities: this.results.episodes.map((res) => res.libraryItem)
- })
- }
-
if (this.results.series?.length) {
shelves.push({
id: 'series',
diff --git a/client/components/cards/EpisodeSearchCard.vue b/client/components/cards/EpisodeSearchCard.vue
index 8be6a3a3b..e69de29bb 100644
--- a/client/components/cards/EpisodeSearchCard.vue
+++ b/client/components/cards/EpisodeSearchCard.vue
@@ -1,60 +0,0 @@
-
-
-
-
-
{{ episodeTitle }}
-
{{ podcastTitle }}
-
-
-
-
-
-
-
diff --git a/client/components/controls/GlobalSearch.vue b/client/components/controls/GlobalSearch.vue
index 6f3a819bf..bc9a23681 100644
--- a/client/components/controls/GlobalSearch.vue
+++ b/client/components/controls/GlobalSearch.vue
@@ -39,15 +39,6 @@
-
{{ $strings.LabelEpisodes }}
-
-
-
-
-
-
-
-
{{ $strings.LabelAuthors }}
@@ -109,7 +100,6 @@ export default {
isFetching: false,
search: null,
podcastResults: [],
- episodeResults: [],
bookResults: [],
authorResults: [],
seriesResults: [],
@@ -125,7 +115,7 @@ export default {
return this.$store.state.libraries.currentLibraryId
},
totalResults() {
- return this.bookResults.length + this.seriesResults.length + this.authorResults.length + this.tagResults.length + this.genreResults.length + this.podcastResults.length + this.narratorResults.length + this.episodeResults.length
+ return this.bookResults.length + this.seriesResults.length + this.authorResults.length + this.tagResults.length + this.genreResults.length + this.podcastResults.length + this.narratorResults.length
}
},
methods: {
@@ -142,7 +132,6 @@ export default {
this.search = null
this.lastSearch = null
this.podcastResults = []
- this.episodeResults = []
this.bookResults = []
this.authorResults = []
this.seriesResults = []
@@ -186,7 +175,6 @@ export default {
if (!this.isFetching) return
this.podcastResults = searchResults.podcast || []
- this.episodeResults = searchResults.episodes || []
this.bookResults = searchResults.book || []
this.authorResults = searchResults.authors || []
this.seriesResults = searchResults.series || []
diff --git a/client/pages/library/_library/search.vue b/client/pages/library/_library/search.vue
index 429603bff..653fc3de1 100644
--- a/client/pages/library/_library/search.vue
+++ b/client/pages/library/_library/search.vue
@@ -22,7 +22,6 @@ export default {
})
results = {
podcasts: results?.podcast || [],
- episodes: results?.episodes || [],
books: results?.book || [],
authors: results?.authors || [],
series: results?.series || [],
@@ -62,7 +61,6 @@ export default {
})
this.results = {
podcasts: results?.podcast || [],
- episodes: results?.episodes || [],
books: results?.book || [],
authors: results?.authors || [],
series: results?.series || [],
diff --git a/server/utils/queries/libraryItemsPodcastFilters.js b/server/utils/queries/libraryItemsPodcastFilters.js
index 68097c1b0..c71e0dc84 100644
--- a/server/utils/queries/libraryItemsPodcastFilters.js
+++ b/server/utils/queries/libraryItemsPodcastFilters.js
@@ -411,43 +411,6 @@ module.exports = {
})
}
- // Search podcast episode title
- const podcastEpisodes = await Database.podcastEpisodeModel.findAll({
- where: [
- Sequelize.literal(textSearchQuery.matchExpression('podcastEpisode.title')),
- {
- '$podcast.libraryItem.libraryId$': library.id
- }
- ],
- replacements: userPermissionPodcastWhere.replacements,
- include: [
- {
- model: Database.podcastModel,
- where: [...userPermissionPodcastWhere.podcastWhere],
- include: [
- {
- model: Database.libraryItemModel
- }
- ]
- }
- ],
- distinct: true,
- offset,
- limit
- })
- const episodeMatches = []
- for (const episode of podcastEpisodes) {
- const libraryItem = episode.podcast.libraryItem
- libraryItem.media = episode.podcast
- libraryItem.media.podcastEpisodes = []
- const oldPodcastEpisodeJson = episode.toOldJSONExpanded(libraryItem.id)
- const libraryItemJson = libraryItem.toOldJSONExpanded()
- libraryItemJson.recentEpisode = oldPodcastEpisodeJson
- episodeMatches.push({
- libraryItem: libraryItemJson
- })
- }
-
const matchJsonValue = textSearchQuery.matchExpression('json_each.value')
// Search tags
@@ -487,8 +450,7 @@ module.exports = {
return {
podcast: itemMatches,
tags: tagMatches,
- genres: genreMatches,
- episodes: episodeMatches
+ genres: genreMatches
}
},