From 9f67f2d4fda32850efe1aede365c18024855eb53 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 6 Jul 2023 14:39:33 +0200 Subject: [PATCH] [rss] Use "Unknown genre" instead of "Podcast" if no genre found If the scanner doesn't set anything the genre will be set to unknown in db.c. See issue #1618 --- src/library/rssscanner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/library/rssscanner.c b/src/library/rssscanner.c index 33a876e4..820f7348 100644 --- a/src/library/rssscanner.c +++ b/src/library/rssscanner.c @@ -380,7 +380,8 @@ mfi_metadata_fixup(struct media_file_info *mfi, struct rss_item_info *ri, const // 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) + + if (mfi->genre && strcmp("(186)Podcast", mfi->genre) == 0) { free(mfi->genre); mfi->genre = strdup("Podcast");