Fixed termination when a podcast updates its image url, attempt 2

This commit is contained in:
emeric
2026-05-18 21:31:07 +02:00
parent 54ee3211c5
commit ee1726947b
@@ -82,7 +82,10 @@ namespace lms::podcast
{ {
LMS_LOG(PODCAST, INFO, "Podcast '" << podcast.title << "' : image url changed from '" << previousUrl << "' 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() }) if (db::Artwork::pointer currentArtwork{ dbPodcast->getArtwork() })
{
removeArtwork(currentArtwork); removeArtwork(currentArtwork);
dbPodcast.modify()->setArtwork({});
}
dbPodcast.modify()->setImageUrl(podcast.imageUrl); dbPodcast.modify()->setImageUrl(podcast.imageUrl);
} }