Fixed termination when a podcast updates its image url, attempt 2
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user