mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Updated parseAndCheckForUpdates to pass in LibraryItem instead of Metadata Object
This commit is contained in:
parent
7a751b8f91
commit
639b600570
@ -193,7 +193,7 @@ class Podcast {
|
|||||||
var metadataAbs = textMetadataFiles.find(lf => lf.metadata.filename === 'metadata.abs')
|
var metadataAbs = textMetadataFiles.find(lf => lf.metadata.filename === 'metadata.abs')
|
||||||
if (metadataAbs) {
|
if (metadataAbs) {
|
||||||
var metadataText = await readTextFile(metadataAbs.metadata.path)
|
var metadataText = await readTextFile(metadataAbs.metadata.path)
|
||||||
var abmetadataUpdates = abmetadataGenerator.parseAndCheckForUpdates(metadataText, this.metadata, 'podcast')
|
var abmetadataUpdates = abmetadataGenerator.parseAndCheckForUpdates(metadataText, this, 'podcast')
|
||||||
if (abmetadataUpdates && Object.keys(abmetadataUpdates).length) {
|
if (abmetadataUpdates && Object.keys(abmetadataUpdates).length) {
|
||||||
Logger.debug(`[Podcast] "${this.metadata.title}" changes found in metadata.abs file`, abmetadataUpdates)
|
Logger.debug(`[Podcast] "${this.metadata.title}" changes found in metadata.abs file`, abmetadataUpdates)
|
||||||
metadataUpdatePayload = abmetadataUpdates
|
metadataUpdatePayload = abmetadataUpdates
|
||||||
@ -305,4 +305,4 @@ class Podcast {
|
|||||||
return this.episodes.find(ep => ep.id == episodeId)
|
return this.episodes.find(ep => ep.id == episodeId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module.exports = Podcast
|
module.exports = Podcast
|
||||||
|
Loading…
Reference in New Issue
Block a user