summaryrefslogtreecommitdiffstats
path: root/binding/mediaplayer-api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-08-07 15:14:58 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-08-07 15:15:13 -0700
commit059eb5b736d154e01d2a35fd27ca157d7de51a7a (patch)
tree7faa5e4dfe0c6d90e48ce0ecc2897067db51e79a /binding/mediaplayer-api.c
parent351642ef3d3f57273c7d6d3122235c6c7957162c (diff)
binding: media: scan local users Media directory
Scan ~/Music in addition to the mounted physical media. Bug-AGL: SPEC-810 Change-Id: Ieb76cedc841cf5ea9ae4c260872943b9763ddcb3 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/mediaplayer-api.c')
-rw-r--r--binding/mediaplayer-api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/binding/mediaplayer-api.c b/binding/mediaplayer-api.c
index 44944df..08372ad 100644
--- a/binding/mediaplayer-api.c
+++ b/binding/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();