mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -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
|
// in those cases take info from the RSS and not the stream
|
||||||
if (!mfi->url)
|
if (!mfi->url)
|
||||||
mfi->url = safe_strdup(ri->link);
|
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);
|
free(mfi->genre);
|
||||||
mfi->genre = strdup("Podcast");
|
mfi->genre = strdup("Podcast");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user