From b4774cd77fcaf71417bf41833d385aa465ddd176 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sun, 15 Sep 2024 11:49:18 +0200 Subject: [PATCH] Upd: Show placeholder image by playlist type --- docs/references/webserver-uris.md | 2 +- htdocs/js/viewBrowsePlaylist.js | 3 ++- htdocs/js/views.js | 2 +- src/web_server/playlistart.c | 12 +++++++++++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/references/webserver-uris.md b/docs/references/webserver-uris.md index b4edc7472..b9ffbe533 100644 --- a/docs/references/webserver-uris.md +++ b/docs/references/webserver-uris.md @@ -17,7 +17,7 @@ Reference of all webserver uris. | `/browse/` | Prints the list of [published directories]({{ site.baseurl }}/references/published-directories) | | `/ca.crt` | Returns the myMPD CA certificate | | `/folderart?path=` | Returns the folderart thumbnail. | -| `/playlistart?playlist=` | Returns the playlistart thumbnail. | +| `/playlistart?type=&playlist=` | Returns the playlistart thumbnail or a redirect to the placeholder image if not found. | | `/proxy?uri=` | Fetches the response from the uri (GET), allowed hosts: `jcorporation.github.io`, `musicbrainz.org`, `listenbrainz.org` | | `/script//