[daap] Adjust user_agent_filter() so code matches intention

This commit is contained in:
ejurgensen 2020-04-04 21:25:14 +02:00
parent 5651ce7694
commit 4fcd0ba781

View File

@ -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 // 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 // to filter. TODO: Not a really nice way of doing this, but best I could
// think of. // 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; return;
filter = safe_asprintf("%s AND (f.data_kind <> %d)", qp->filter, DATA_KIND_HTTP); filter = safe_asprintf("%s AND (f.data_kind <> %d)", qp->filter, DATA_KIND_HTTP);