Skip to content

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

Description

@TK-3375

Describe the bug

Komga tile doesn't display stats as expected from an "enhanced app"

When adding Komga : application list > add > application list > komga you get a "config" panel to display stats, but it doesn't return anything

To Reproduce
Steps to reproduce the behavior:

  1. Go to Application list
  2. Click on "+ADD"
  3. Choose "Application"
  4. Select "Komga"
  5. Activate config at the bottom
  6. Give credentials
  7. Go back to heimdall home : no stats on komga tile

Expected behavior
I was expecting stats to be displayed

Screenshots
If applicable, add screenshots to help explain your problem.

Version info (please complete the following information):

  • Heimdall: 2.8.1
  • Docker compose via Dokge
  • Version of remote application App tries to use: 1.25.0

Additional context

I am no developper but looked at the issue with Claude, he mimicked the behavior from the nextcloud app to add the option to select what stats to display : books / series / collections.

This is how it looks on my end for now :

Image

According to claude this is the issue :

  • livestats() never populates $data — the method just does $data = []; and then calls getLiveStats() with an empty array
  • livestats.blade.php expects $queue_size and $current_speed — variables copy-pasted from a downloader app (nzbget/sabnzbd) that never exist in $data → PHP throws an "undefined variable" error → that's your 500
  • No authentication is ever sent — the config form does ask for username/password, but Komga.php never actually uses them in the API calls (unlike other enhanced apps like Nextcloud, which build an Authorization: Basic header)
  • url("status") hits an endpoint that doesn't exist in the Komga API

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions