diff --git a/gui/slick/js/core.js b/gui/slick/js/core.js index 32ba8b947abbc19be4b84b7d54ba2d762006b009..e1cb8c23f8c927a803edaac5059793fd0c72ce70 100644 --- a/gui/slick/js/core.js +++ b/gui/slick/js/core.js @@ -1626,8 +1626,8 @@ var SICKRAGE = { $('#torrent_auth_type_option').show(); } else if (selectedProvider.toLowerCase() === 'qbittorrent'){ client = 'qbittorrent'; - $('#torrent_path_option').hide(); - $('#torrent_label_option').hide(); + $('#label_warning_qbittorrent').show(); + $('#label_anime_warning_qbittorrrent').show(); $('#torrent_label_anime_option').hide(); $('#host_desc_torrent').text('URL to your qbittorrent client (e.g. http://localhost:8080)'); } else if (selectedProvider.toLowerCase() === 'mlnet'){ diff --git a/gui/slick/js/core.min.js b/gui/slick/js/core.min.js index cafbadcdf14649b20160670b8b1aeb477f850f23..a87d718c27160fbd0e288b185772a86e0e0fd332 100644 Binary files a/gui/slick/js/core.min.js and b/gui/slick/js/core.min.js differ diff --git a/gui/slick/views/config_search.mako b/gui/slick/views/config_search.mako index 6fce79b211d20566e8b6dd9711ccabb931524541..d5d87f199e82fd4f7c533fcc337d822676f60a04 100644 --- a/gui/slick/views/config_search.mako +++ b/gui/slick/views/config_search.mako @@ -565,6 +565,9 @@ <span id="label_warning_deluge" style="display:none"><p>(blank spaces are not allowed)</p> <div class="clear-left"><p>note: label plugin must be enabled in Deluge clients</p></div> </span> + <span id="label_warning_qbittorrent" style="display:none"><p>(blank spaces are not allowed)</p> + <div class="clear-left"><p>note: for QBitTorrent 3.3.1 and up</p></div> + </span> </span> </label> </div> @@ -577,6 +580,9 @@ <span id="label_anime_warning_deluge" style="display:none"><p>(blank spaces are not allowed)</p> <div class="clear-left"><p>note: label plugin must be enabled in Deluge clients</p></div> </span> + <span id="label_anime_warning_qbittorrent" style="display:none"><p>(blank spaces are not allowed)</p> + <div class="clear-left"><p>note: for QBitTorrent 3.3.1 and up </p></div> + </span> </span> </label> </div> diff --git a/sickbeard/clients/generic.py b/sickbeard/clients/generic.py index bcea0118ceec9836ce9ececa6917ce590555d03b..40970480a9abeaab4ebc234528d2381f5db83875 100644 --- a/sickbeard/clients/generic.py +++ b/sickbeard/clients/generic.py @@ -173,9 +173,10 @@ class GenericClient(object): logger.log(u'Calling ' + self.name + ' Client', logger.DEBUG) - if not self._get_auth(): - logger.log(self.name + u': Authentication Failed', logger.ERROR) - return r_code + if not self.auth: + if not self._get_auth(): + logger.log(self.name + u': Authentication Failed', logger.ERROR) + return r_code try: # Sets per provider seed ratio diff --git a/sickbeard/clients/qbittorrent_client.py b/sickbeard/clients/qbittorrent_client.py index a89f7ae6057d15a7f786aabb3c5f48f032520337..d68e12f75e94843318f73c11b07e6cb282199ea6 100644 --- a/sickbeard/clients/qbittorrent_client.py +++ b/sickbeard/clients/qbittorrent_client.py @@ -84,7 +84,7 @@ class qbittorrentAPI(GenericClient): if self.api > 6: self.url = self.host + 'command/setLabel' - data = {'hashes': result.hash, 'label': label} + data = {'hashes': result.hash.lower(), 'label': label} return self._request(method='post', data=data, cookies=self.session.cookies) return None @@ -94,7 +94,7 @@ class qbittorrentAPI(GenericClient): if result.priority == 1: self.url = self.host + 'command/increasePrio' - data = {'hashes': result.hash} + data = {'hashes': result.hash.lower()} return self._request(method='post', data=data, cookies=self.session.cookies) def _set_torrent_pause(self, result):