Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/blueprints/media_servers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from app.services.media.service import scan_libraries_for_server
from app.services.servers import (
check_audiobookshelf,
check_drop,
check_emby,
check_jellyfin,
check_kavita,
Expand All @@ -38,6 +39,8 @@
return check_emby(data["server_url"], data["api_key"])
if stype == "audiobookshelf":
return check_audiobookshelf(data["server_url"], data["api_key"])
if stype == "drop":
return check_drop(data["server_url"], data["api_key"])
if stype == "romm":
username = data.get("server_username", "").strip()
password = data.get("server_password", "").strip()
Expand Down Expand Up @@ -258,7 +261,7 @@
)

# Non-HTMX fallback (e.g., API call)
return jsonify({"connected": ok, "error": error_msg if not ok else None})

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.
Stack trace information flows to this location and may be exposed to an external user.


# -------------------------- STATISTICS ENDPOINTS ---------------------------
Expand Down
1 change: 1 addition & 0 deletions app/forms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class SettingsForm(FlaskForm):
("jellyfin", "Jellyfin"),
("emby", "Emby"),
("audiobookshelf", "Audiobookshelf"),
("drop", "Drop"),
("romm", "Romm"),
("komga", "Komga"),
("kavita", "Kavita"),
Expand Down
1 change: 1 addition & 0 deletions app/services/media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# Import clients to trigger registration
from .audiobookshelf import AudiobookshelfClient # noqa: F401
from .drop import DropClient # noqa: F401
from .emby import EmbyClient # noqa: F401
from .jellyfin import JellyfinClient # noqa: F401
from .kavita import KavitaClient # noqa: F401
Expand Down
Loading
Loading