mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
[rss] Always use RSS feed title and author for album and artist
This commit is contained in:
parent
3994ef0f2e
commit
5074b158bd
@ -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)
|
||||
// Always take the artist and album from the RSS feed and not the stream
|
||||
free(mfi->artist);
|
||||
mfi->artist = safe_strdup(feed_author);
|
||||
if (!mfi->album)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user