Fallback manual grab to qBittorrent
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user