mirror of
https://github.com/owntone/owntone-server.git
synced 2025-12-01 13:52:37 -05:00
[db] Transfer some library tag fixup to the db's generic fixup
Transfer setting defaults for media_kind and item_kind. Also sets default media_kind for queue_items.
This commit is contained in:
@@ -128,11 +128,6 @@ library_add_media(struct media_file_info *mfi)
|
||||
mfi->path, mfi->directory_id, mfi->virtual_path);
|
||||
}
|
||||
|
||||
if (!mfi->item_kind)
|
||||
mfi->item_kind = 2; /* music */
|
||||
if (!mfi->media_kind)
|
||||
mfi->media_kind = MEDIA_KIND_MUSIC; /* music */
|
||||
|
||||
if (mfi->id == 0)
|
||||
db_file_add(mfi);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user