aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplayer-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplayer-api.c')
-rw-r--r--mediaplayer-api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mediaplayer-api.c b/mediaplayer-api.c
index 44944df..08372ad 100644
--- a/mediaplayer-api.c
+++ b/mediaplayer-api.c
@@ -91,10 +91,6 @@ static json_object *new_json_object_from_device(GList *list)
json_object_object_add(jresp, "Media", jarray);
- // TODO: Add media path
- jstring = json_object_new_string("");
- json_object_object_add(jresp, "Path", jstring);
-
return jresp;
}
@@ -105,6 +101,7 @@ static void media_results_get (struct afb_req request)
ListLock();
list = media_lightmediascanner_scan();
+ list = media_local_scan(list);
if (list == NULL) {
afb_req_fail(request, "failed", "media scan error");
ListUnlock();