mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
Fill in media_kind=1 for music
Also move item_kind initialization further up.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user