Fallback manual grab to qBittorrent

This commit is contained in:
2026-01-23 18:15:36 +13:00
parent 69dc7febe2
commit 49e9ee771f
3 changed files with 53 additions and 0 deletions

View File

@@ -67,3 +67,9 @@ class QBittorrentClient(ApiClient):
await self._post_form("/api/v2/torrents/start", data={"hashes": hashes})
return
raise
async def add_torrent_url(self, url: str, category: Optional[str] = None) -> None:
data: Dict[str, Any] = {"urls": url}
if category:
data["category"] = category
await self._post_form("/api/v2/torrents/add", data=data)