Fix for Podcast detection - if there is no metadata
This commit is contained in:
parent
6eaf47a8d6
commit
eb1e827f1d
|
@ -617,7 +617,7 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi)
|
|||
mfi->media_kind = 2;
|
||||
}
|
||||
/* Podcasts are either media_kind 4, 6 or 7 - unsure what the difference is */
|
||||
else if (strcmp(mfi->genre,"Podcast") == 0)
|
||||
else if ((mdcount > 0) && mfi->genre && (strcmp(mfi->genre,"Podcast") == 0))
|
||||
{
|
||||
mfi->media_kind = 4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue