Private GIT

Skip to content
Snippets Groups Projects
Commit 55bfa4b5 authored by miigotu's avatar miigotu
Browse files

Merge pull request #731 from SickRage/fix_qbittorrent_label

Only set torrent label if label is set and replace space for safety
parents f400babc 99d816f4
No related branches found
No related tags found
No related merge requests found
......@@ -82,9 +82,9 @@ class qbittorrentAPI(GenericClient):
if result.show.is_anime:
label = sickbeard.TORRENT_LABEL_ANIME
if self.api > 6:
if self.api > 6 and label:
self.url = self.host + 'command/setLabel'
data = {'hashes': result.hash.lower(), 'label': label}
data = {'hashes': result.hash.lower(), 'label': label.replace(' ','_')}
return self._request(method='post', data=data, cookies=self.session.cookies)
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment