Skip to content

Fix Komga enhanced app live stats - #966

Merged
KodeStar merged 1 commit into
masterfrom
fix/komga-livestats
Jul 27, 2026
Merged

Fix Komga enhanced app live stats#966
KodeStar merged 1 commit into
masterfrom
fix/komga-livestats

Conversation

@KodeStar

Copy link
Copy Markdown
Member

Description

Fixes #948 — the Komga enhanced app never displayed stats.

The app was an unfinished scaffold:

  • livestats() queried a nonexistent status endpoint and returned an empty $data array
  • livestats.blade.php referenced $queue_size / $current_speed (copy-pasted from a downloader app), which caused a 500 on every stats refresh
  • The username/password collected by the config form were never sent with API requests

Changes

  • API requests now authenticate with HTTP Basic auth using the configured credentials
  • The config Test button checks connectivity against api/v2/users/me
  • Live stats show Series / Books / Collections counts from the paginated v1 API totalElements, selectable via a new "Stats to show" multi-select in the config panel (defaults to Series + Books), following the Nextcloud app's pattern

The Komga app was an unfinished scaffold: it queried a nonexistent
'status' endpoint, never sent the credentials collected by the config
form, and the livestats template referenced queue/speed variables that
were never populated, causing a 500 on every stats refresh.

- Authenticate API requests with HTTP Basic auth
- Test connectivity against api/v2/users/me
- Show Series/Books/Collections counts from the paginated v1 API
  totals, selectable in the config panel (defaults to Series + Books)

Fixes #948
@KodeStar
KodeStar merged commit a889178 into master Jul 27, 2026
4 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs to Done in Issue & PR Tracker Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[BUG] - Komga enhanced app doesn't display stats

2 participants