mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Always set media_kind, for real
The problem is, you can't set INITIAL values for the file scanner, because the filescanner doesn't fill in values on top of already existing values.
This commit is contained in:
parent
ed3dbc1f35
commit
1b34c9d555
@ -250,10 +250,6 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
|
||||
}
|
||||
}
|
||||
|
||||
/* These will eventually be overridden by the actual filescanner */
|
||||
mfi.item_kind = 2; /* music */
|
||||
mfi.media_kind = 1; /* music */
|
||||
|
||||
/* General case */
|
||||
if (ret < 0)
|
||||
{
|
||||
@ -271,6 +267,11 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
|
||||
|
||||
mfi.compilation = compilation;
|
||||
|
||||
if (!mfi.item_kind)
|
||||
mfi.item_kind = 2; /* music */
|
||||
if (!mfi.media_kind)
|
||||
mfi.media_kind = 1; /* music */
|
||||
|
||||
fixup_tags(&mfi);
|
||||
|
||||
if (mfi.id == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user