Fix Komga enhanced app live stats - #966
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #948 — the Komga enhanced app never displayed stats.
The app was an unfinished scaffold:
livestats()queried a nonexistentstatusendpoint and returned an empty$dataarraylivestats.blade.phpreferenced$queue_size/$current_speed(copy-pasted from a downloader app), which caused a 500 on every stats refreshChanges
api/v2/users/metotalElements, selectable via a new "Stats to show" multi-select in the config panel (defaults to Series + Books), following the Nextcloud app's pattern