From 4fcd0ba7818ecb1c2dd219e2ddf6365e98674b6d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 4 Apr 2020 21:25:14 +0200 Subject: [PATCH] [daap] Adjust user_agent_filter() so code matches intention --- src/httpd_daap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 749fb968..37721c40 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -481,7 +481,7 @@ user_agent_filter(struct query_params *qp, struct httpd_request *hreq) // contained extended_media_kind:1, which characterise the queries we want // to filter. TODO: Not a really nice way of doing this, but best I could // think of. - if (!qp->filter || !strstr(qp->filter, "f.media_kind") || (qp->filter && strstr(qp->filter, "f.media_kind = 4"))) + if (!qp->filter || !strstr(qp->filter, "f.media_kind = 1")) return; filter = safe_asprintf("%s AND (f.data_kind <> %d)", qp->filter, DATA_KIND_HTTP);