Skip to content

Commit

Permalink
Fix qBittorrent Unsupported Media Type (#8528)
Browse files Browse the repository at this point in the history
* Fix qBittorrent Unsupported Media Type

* Update qbittorrent.py

Co-authored-by: p0ps <p0psicles@users.noreply.github.com>
  • Loading branch information
medariox and p0psicles authored Sep 26, 2020
1 parent cd160be commit e5775b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions medusa/clients/torrent/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ def _add_torrent_file(self, result):
files = {
'torrents': result.content
}
data = {}
if self.api >= (2, 0, 0):
if os.path.isabs(app.TORRENT_PATH):
files['savepath'] = app.TORRENT_PATH
return self._request(method='post', files=files, cookies=self.session.cookies)
data['savepath'] = app.TORRENT_PATH
return self._request(method='post', data=data, files=files, cookies=self.session.cookies)

def _set_torrent_label(self, result):

Expand Down

0 comments on commit e5775b7

Please sign in to comment.