[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:
ejurgensen
2018-12-30 16:13:57 +01:00
parent c3eb95d201
commit 734b4e9851
2 changed files with 13 additions and 6 deletions

View File

@@ -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