[library] Add missing attribute mapping from mfi to queue item

This commit is contained in:
chme 2017-03-13 20:10:39 +01:00 committed by ejurgensen
parent e31fea6c44
commit 888710612c
2 changed files with 9 additions and 1 deletions

View File

@ -511,6 +511,14 @@ library_add_queue_item(struct media_file_info *mfi)
queue_item.virtual_path = mfi->virtual_path;
queue_item.data_kind = mfi->data_kind;
queue_item.media_kind = mfi->media_kind;
queue_item.song_length = mfi->song_length;
queue_item.seek = mfi->seek;
queue_item.songalbumid = mfi->songalbumid;
queue_item.time_modified = mfi->time_modified;
queue_item.year = mfi->year;
queue_item.track = mfi->track;
queue_item.disc = mfi->disc;
//queue_item.artwork_url
return db_queue_add_item(&queue_item, 0, 0);
}

View File

@ -83,7 +83,7 @@ int
library_scan_media(const char *path, struct media_file_info *mfi);
int
library_add_queue_item(struct media_file_info* mfi);
library_add_queue_item(struct media_file_info *mfi);
void
library_rescan();