Skip to content

Commit

Permalink
Fix support for qbittorrent >= 3.3.5
Browse files Browse the repository at this point in the history
Implements fix from SiCKRAGE/SiCKRAGE#1996 for issue SiCKRAGE/SiCKRAGE#1990
All credits go to @ngodber
  • Loading branch information
labrys committed Jun 22, 2016
1 parent f1cea62 commit f871bd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sickbeard/clients/qbittorrent_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def _set_torrent_label(self, result):
label = sickbeard.TORRENT_LABEL_ANIME if result.show.is_anime else sickbeard.TORRENT_LABEL

if self.api > 6 and label:
self.url = '{host}command/setLabel'.format(host=self.host)
self.url = '{host}command/{cmd}'.format(
host=self.host,
cmd='setCategory' if self.api >= 10 else 'setLabel'
)
data = {
'hashes': result.hash.lower(),
'label': label.replace(' ', '_'),
Expand Down

0 comments on commit f871bd7

Please sign in to comment.