mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[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:
parent
e4f4824023
commit
9f67f2d4fd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user