From dc59407b9e518959a6c3efb32753ee212b8d46e2 Mon Sep 17 00:00:00 2001 From: emeric Date: Sun, 14 Sep 2025 13:21:26 +0200 Subject: [PATCH] Adjusted log --- src/libs/services/podcast/impl/steps/RefreshPodcastsStep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/services/podcast/impl/steps/RefreshPodcastsStep.cpp b/src/libs/services/podcast/impl/steps/RefreshPodcastsStep.cpp index ea685dcf..ba718688 100644 --- a/src/libs/services/podcast/impl/steps/RefreshPodcastsStep.cpp +++ b/src/libs/services/podcast/impl/steps/RefreshPodcastsStep.cpp @@ -79,9 +79,9 @@ namespace lms::podcast dbPodcast.modify()->setSubtitle(podcast.subtitle); dbPodcast.modify()->setSummary(podcast.summary); dbPodcast.modify()->setTitle(podcast.title); - if (dbPodcast->getImageUrl() != podcast.imageUrl) + if (std::string previousUrl{ dbPodcast->getImageUrl() }; !previousUrl.empty() && previousUrl != podcast.imageUrl) { - LMS_LOG(PODCAST, INFO, "Podcast '" << podcast.title << "' : image url changed from '" << dbPodcast->getImageUrl() << "' to '" << podcast.imageUrl << "'"); + LMS_LOG(PODCAST, INFO, "Podcast '" << podcast.title << "' : image url changed from '" << previousUrl << "' to '" << podcast.imageUrl << "'"); if (db::Artwork::pointer currentArtwork{ dbPodcast->getArtwork() }) removeArtwork(session, currentArtwork);