From 888710612c5e5ebfce25cdb4c4d841740597ad37 Mon Sep 17 00:00:00 2001 From: chme Date: Mon, 13 Mar 2017 20:10:39 +0100 Subject: [PATCH] [library] Add missing attribute mapping from mfi to queue item --- src/library.c | 8 ++++++++ src/library.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/library.c b/src/library.c index ab0cf98f..e1dc1fb9 100644 --- a/src/library.c +++ b/src/library.c @@ -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); } diff --git a/src/library.h b/src/library.h index dea7d036..a72c5957 100644 --- a/src/library.h +++ b/src/library.h @@ -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();