mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 12:43:18 -05:00
Fill in media_kind=1 for music
Also move item_kind initialization further up.
This commit is contained in:
parent
974a74a833
commit
fc971974f0
@ -243,6 +243,10 @@ 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)
|
||||
{
|
||||
@ -259,7 +263,6 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
|
||||
}
|
||||
|
||||
mfi.compilation = compilation;
|
||||
mfi.item_kind = 2; /* music */
|
||||
|
||||
fixup_tags(&mfi);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user