From a5beee44e97c1e694edc2ee8a826df2f31e16bcc Mon Sep 17 00:00:00 2001 From: Adam0 Date: Sun, 27 Sep 2026 08:47:13 +0200 Subject: [PATCH] Point Jellyfin widget at Jellyfin 12 API routes --- config/statistics.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/statistics.yml b/config/statistics.yml index 22d3653..a7cfb5e 100644 --- a/config/statistics.yml +++ b/config/statistics.yml @@ -15,9 +15,9 @@ {{- if or (eq $url "") (eq $key "") -}}

Error: The URL or API key was not configured in the widget options.

{{- else -}} - {{- $countsUrl := printf "%s/emby/Items/Counts" $url -}} + {{- $countsUrl := printf "%s/Items/Counts" $url -}} {{- $jellyfinData := newRequest $countsUrl | withHeader "X-Api-Key" $key | getResponse -}} - {{- $audiobooksUrl := printf "%s/emby/Items?IncludeItemTypes=AudioBook&Recursive=true&Limit=0&EnableTotalRecordCount=true" $url -}} + {{- $audiobooksUrl := printf "%s/Items?IncludeItemTypes=AudioBook&Recursive=true&Limit=0&EnableTotalRecordCount=true" $url -}} {{- $audiobooksData := newRequest $audiobooksUrl | withHeader "X-Api-Key" $key | getResponse -}} {{- if and (eq $jellyfinData.Response.StatusCode 200) (eq $audiobooksData.Response.StatusCode 200) -}} @@ -48,7 +48,7 @@ {{- else -}} -

Failed to fetch Jellyfin library counts.

+

Failed to fetch Jellyfin library counts (Counts: {{ $jellyfinData.Response.StatusCode }}, Audiobooks: {{ $audiobooksData.Response.StatusCode }}).

{{- end -}} {{- end -}} -- 2.51.2