Mirror of maxdorninger/MediaManager
Find a file
Lalit Patil 98f253238c
Fix qBittorrent configuration and API response handling (#558)
## Summary
Fixes two critical qBittorrent issues reported in the original
repository:

- **Issue #546**: "Missing required parameters: savePath" - users forced
to manually configure category_save_path
- **Issue #547**: "Failed to download torrent, API-Answer isn't 'Ok.'" -
API response misinterpretation causing false failures

## Changes Made
- `media_manager/torrent/config.py`: Set proper default
`category_save_path` from `""` to `"/data/torrents"`
- `media_manager/torrent/download_clients/qbittorrent.py`: 
- Fixed API response check to handle `TorrentsAddedMetadata` objects
with `pending_count` or `success_count`
  - Use config `category_name` instead of hardcoded "MediaManager"

## Testing
These fixes address the root causes identified in both GitHub issues:
- Issue #546: Users can now use default configuration without manual
category_save_path setup
- Issue #547: Torrents that are "pending" (queued) are now correctly
recognized as successful additions

Resolves https://github.com/maxdorninger/MediaManager/issues/546
Resolves https://github.com/maxdorninger/MediaManager/issues/547

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved detection of successful qBittorrent submissions by
recognising broader success indicators in API responses.

* **Improvements**
* Torrent downloads now honour user-configured category for correct file
organisation.
* Default torrent storage path set to /data/torrents to better match
containerised deployments and avoid misconfiguration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-05 19:55:14 +02:00
.github Add workflow for automatically uploading config files to releases (#524) 2026-05-01 17:49:59 +02:00
alembic remove everything related to requests (#455) 2026-02-22 19:46:47 +01:00
docs GitBook: Update content 2026-07-05 17:41:29 +00:00
media_manager Fix qBittorrent configuration and API response handling (#558) 2026-07-05 19:55:14 +02:00
metadata_relay Bump the uv group across 1 directory with 2 updates (#523) 2026-05-01 17:20:59 +02:00
web feat: add auth.registration_enabled flag and admin ui user creation (#543) 2026-07-05 19:41:04 +02:00
.gitignore Refactor tv and movies (#526) 2026-05-07 14:18:29 +02:00
alembic.ini refactor: change folder structure 2025-05-29 15:36:35 +02:00
CODE_OF_CONDUCT.md Add Contributor Covenant Code of Conduct (#355) 2026-01-05 13:00:42 +01:00
config.dev.toml Extend AVOID_CAM scoring rule (#458) 2026-02-23 23:21:48 +01:00
config.example.toml feat: add auth.registration_enabled flag and admin ui user creation (#543) 2026-07-05 19:41:04 +02:00
CONTRIBUTING.md update all links to docs 2026-02-08 19:47:17 +01:00
docker-compose.dev.yaml convert gitbook files to mkdocs 2026-02-08 19:16:38 +01:00
docker-compose.yaml Switch to quay and add docker image documentation (#356) 2026-01-05 17:14:32 +01:00
Dockerfile replace libtorrent with torf (#506) 2026-05-01 16:24:34 +02:00
LICENSE Update license information for MediaManager 2025-08-29 22:24:38 +02:00
Makefile Improve local dev experience 2025-10-31 12:19:23 -04:00
mediamanager-startup.sh make the container user configurable (#399) 2026-02-04 19:01:18 +01:00
mkdocs.yml Rebrand to new MediaManager logo (#452) 2026-02-21 20:29:16 +01:00
pyproject.toml Bump ty from 0.0.28 to 0.0.33 (#503) 2026-05-01 17:40:28 +02:00
README.md Rebrand to new MediaManager logo (#452) 2026-02-21 20:29:16 +01:00
ruff.toml switch from APScheduler to Taskiq (#461) 2026-02-26 21:23:24 +01:00
uv.lock Bump ty from 0.0.28 to 0.0.33 (#503) 2026-05-01 17:40:28 +02:00


Logo

MediaManager

Modern management system for your media library
Explore the docs »
Report Bug · Request Feature

MediaManager is the modern, easy-to-use successor to the fragmented "Arr" stack. Manage, discover, and automate your TV and movie collection in a single, simple interface.

Key features:

  • support for OAuth/OIDC
  • support for TVDB and TMDB
  • made to be deployed with Docker

Quick Start

wget -O docker-compose.yaml https://github.com/maxdorninger/MediaManager/releases/latest/download/docker-compose.yaml
mkdir config
wget -O ./config/config.toml https://github.com/maxdorninger/MediaManager/releases/latest/download/config.example.toml
# you probably need to edit the config.toml file in the ./config directory, for more help see the documentation
docker compose up -d

View the docs for installation instructions and more

Support MediaManager

Sponsor @maxdorninger Buy Me A Coffee

Check out the awesome sponsors of MediaManager ❤️

Aljaž Mur Eržen   Luis Rodriguez   Brandon P.   SeimusS   HadrienKerlero   keyxmakerx   LITUATUI   Nicolas   Josh   PuppiestDoggo   Seferino   syn  

Star History

Star History Chart

Screenshots

Screenshot 2025-12-08 at 00 44 26 Screenshot 2025-12-08 at 00 46 39

Screenshot 2025-07-02 174616

Screenshot 2025-12-08 at 00 48 23

Screenshot 2025-06-28 222908

Developer Quick Start

For the developer guide see the Developer Guide.

License

Distributed under the AGPL 3.0. See LICENSE.txt for more information.

Acknowledgments

Thanks to DigitalOcean for sponsoring the project!

DigitalOcean Referral Badge