From 5074b158bdd2f48ed9d5754d1447d0584d3a3299 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 18 Apr 2020 11:43:23 +0200 Subject: [PATCH] [rss] Always use RSS feed title and author for album and artist --- src/library/rssscanner.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/library/rssscanner.c b/src/library/rssscanner.c index 2a57c1db..a4406e49 100644 --- a/src/library/rssscanner.c +++ b/src/library/rssscanner.c @@ -353,13 +353,14 @@ mfi_metadata_fixup(struct media_file_info *mfi, struct rss_item_info *ri, const { struct tm tm; - // Always take the meta from media file if possible; some podcasts (Apple) can - // use mp4 streams which tend not to have decent tags so in those cases take - // info from the RSS and not the stream - if (!mfi->artist) - mfi->artist = safe_strdup(feed_author); - if (!mfi->album) - mfi->album = safe_strdup(feed_title); + // Always take the artist and album from the RSS feed and not the stream + free(mfi->artist); + mfi->artist = safe_strdup(feed_author); + free(mfi->album); + mfi->album = safe_strdup(feed_title); + + // Some podcasts (Apple) can use mp4 streams which tend not to have decent tags so + // in those cases take info from the RSS and not the stream if (!mfi->url) mfi->url = safe_strdup(ri->link); if (!mfi->genre || strcmp("(186)Podcast", mfi->genre) == 0)