From 639b6005707e0f1f6a2e8fa47adffe84cc18ba9e Mon Sep 17 00:00:00 2001 From: yuuzhan Date: Thu, 2 Feb 2023 12:47:12 -0500 Subject: [PATCH] Updated parseAndCheckForUpdates to pass in LibraryItem instead of Metadata Object --- server/objects/mediaTypes/Podcast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/objects/mediaTypes/Podcast.js b/server/objects/mediaTypes/Podcast.js index c94c8653..f279be88 100644 --- a/server/objects/mediaTypes/Podcast.js +++ b/server/objects/mediaTypes/Podcast.js @@ -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 \ No newline at end of file +module.exports = Podcast