mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Set title[IgnorePrefix] when a podcast libraryItem is created
This commit is contained in:
parent
0a8186cbda
commit
7038f5730f
@ -107,7 +107,9 @@ class PodcastController {
|
|||||||
libraryFiles: [],
|
libraryFiles: [],
|
||||||
extraData: {},
|
extraData: {},
|
||||||
libraryId: library.id,
|
libraryId: library.id,
|
||||||
libraryFolderId: folder.id
|
libraryFolderId: folder.id,
|
||||||
|
title: podcast.title,
|
||||||
|
titleIgnorePrefix: podcast.titleIgnorePrefix
|
||||||
},
|
},
|
||||||
{ transaction }
|
{ transaction }
|
||||||
)
|
)
|
||||||
|
@ -627,7 +627,9 @@ class PodcastManager {
|
|||||||
libraryFiles: [],
|
libraryFiles: [],
|
||||||
extraData: {},
|
extraData: {},
|
||||||
libraryId: folder.libraryId,
|
libraryId: folder.libraryId,
|
||||||
libraryFolderId: folder.id
|
libraryFolderId: folder.id,
|
||||||
|
title: podcast.title,
|
||||||
|
titleIgnorePrefix: podcast.titleIgnorePrefix
|
||||||
},
|
},
|
||||||
{ transaction }
|
{ transaction }
|
||||||
)
|
)
|
||||||
|
@ -303,6 +303,8 @@ class PodcastScanner {
|
|||||||
libraryItemObj.isMissing = false
|
libraryItemObj.isMissing = false
|
||||||
libraryItemObj.isInvalid = false
|
libraryItemObj.isInvalid = false
|
||||||
libraryItemObj.extraData = {}
|
libraryItemObj.extraData = {}
|
||||||
|
libraryItemObj.title = podcastObject.title
|
||||||
|
libraryItemObj.titleIgnorePrefix = getTitleIgnorePrefix(podcastObject.title)
|
||||||
|
|
||||||
// If cover was not found in folder then check embedded covers in audio files
|
// If cover was not found in folder then check embedded covers in audio files
|
||||||
if (!podcastObject.coverPath && scannedAudioFiles.length) {
|
if (!podcastObject.coverPath && scannedAudioFiles.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user