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


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

Description
No description provided
Readme AGPL-3.0 67 MiB
Languages
Python 47.7%
Svelte 43.5%
TypeScript 6.2%
Shell 1%
CSS 0.5%
Other 1%