Skip to content

Commit

Permalink
Fix broken delete_torrents on qbittorrent 4.5.0+ (#174)
Browse files Browse the repository at this point in the history
* Update qbittorrent.py

* Update qbittorrent.py
  • Loading branch information
Siriussee authored Apr 27, 2024
1 parent e20e665 commit 12335fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoremovetorrents/client/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def torrent_trackers(self, torrent_hash):

# Batch Delete torrents
def delete_torrents(self, torrent_hash_list):
return self._session.get(self._host+'/api/v2/torrents/delete', params={'hashes':'|'.join(torrent_hash_list), 'deleteFiles': False})
return self._session.post(self._host+'/api/v2/torrents/delete', data={'hashes':'|'.join(torrent_hash_list), 'deleteFiles': False})

# Batch Delete torrents and data
def delete_torrents_and_data(self, torrent_hash_list):
return self._session.get(self._host+'/api/v2/torrents/delete', params={'hashes':'|'.join(torrent_hash_list), 'deleteFiles': True})
return self._session.post(self._host+'/api/v2/torrents/delete', data={'hashes':'|'.join(torrent_hash_list), 'deleteFiles': True})

def __init__(self, host):
# Logger
Expand Down

0 comments on commit 12335fc

Please sign in to comment.