Updated parseAndCheckForUpdates to pass in LibraryItem instead of Metadata Object

This commit is contained in:
yuuzhan 2023-02-02 12:47:12 -05:00 committed by GitHub
parent 7a751b8f91
commit 639b600570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ class Podcast {
var metadataAbs = textMetadataFiles.find(lf => lf.metadata.filename === 'metadata.abs')
if (metadataAbs) {
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) {
Logger.debug(`[Podcast] "${this.metadata.title}" changes found in metadata.abs file`, abmetadataUpdates)
metadataUpdatePayload = abmetadataUpdates
@ -305,4 +305,4 @@ class Podcast {
return this.episodes.find(ep => ep.id == episodeId)
}
}
module.exports = Podcast
module.exports = Podcast