diff --git a/CHANGES.md b/CHANGES.md index ca3b2d2..6af256b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.17.13 (2018-11-08 21:12:00 UTC) +### 0.17.14 (2018-11-15 08:00:00 UTC) + +* Change remove required restart of SickGear after changing label or path settings for rTorrent and qBittorrent + + +### 0.17.13 (2018-11-08 21:12:00 UTC) * Fix add filter to data used for alternative scene episode numbers * Change don't enable "Scene numbering" for shows without alternative scene episode numbers diff --git a/sickbeard/clients/qbittorrent.py b/sickbeard/clients/qbittorrent.py index cdd483d..ce4b1f8 100644 --- a/sickbeard/clients/qbittorrent.py +++ b/sickbeard/clients/qbittorrent.py @@ -14,7 +14,8 @@ # You should have received a copy of the GNU General Public License # along with SickGear. If not, see . -from sickbeard import helpers, TORRENT_LABEL, TORRENT_PATH +import sickbeard +from sickbeard import helpers from sickbeard.clients.generic import GenericClient @@ -43,8 +44,8 @@ class QbittorrentAPI(GenericClient): def _add_torrent(self, cmd, **kwargs): - label = TORRENT_LABEL.replace(' ', '_') - label_dict = {'label': label, 'category': label, 'savepath': TORRENT_PATH} + label = sickbeard.TORRENT_LABEL.replace(' ', '_') + label_dict = {'label': label, 'category': label, 'savepath': sickbeard.TORRENT_PATH} if 'post_data' in kwargs: kwargs['post_data'].update(label_dict) else: diff --git a/sickbeard/clients/rtorrent.py b/sickbeard/clients/rtorrent.py index f169d3c..fd86844 100644 --- a/sickbeard/clients/rtorrent.py +++ b/sickbeard/clients/rtorrent.py @@ -17,7 +17,8 @@ # along with SickGear. If not, see . import xmlrpclib -from sickbeard import helpers, TORRENT_LABEL, TORRENT_PATH +import sickbeard +from sickbeard import helpers from sickbeard.clients.generic import GenericClient from lib.rtorrent import RTorrent @@ -58,11 +59,11 @@ class RtorrentAPI(GenericClient): if torrent: - if TORRENT_LABEL: - torrent.set_custom(1, TORRENT_LABEL) + if sickbeard.TORRENT_LABEL: + torrent.set_custom(1, sickbeard.TORRENT_LABEL) - if TORRENT_PATH: - torrent.set_directory(TORRENT_PATH) + if sickbeard.TORRENT_PATH: + torrent.set_directory(sickbeard.TORRENT_PATH) torrent.start()