[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
This commit is contained in:
ejurgensen 2023-07-06 14:39:33 +02:00
parent e4f4824023
commit 9f67f2d4fd

View File

@ -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");