Browse Source

Change remove required restart of SickGear after changing label or path settings for rTorrent and qBittorrent.

tags/release_0.17.14^2
JackDandy 7 years ago
parent
commit
1ae2bd3bd7
  1. 7
      CHANGES.md
  2. 7
      sickbeard/clients/qbittorrent.py
  3. 11
      sickbeard/clients/rtorrent.py

7
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

7
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 <http://www.gnu.org/licenses/>.
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:

11
sickbeard/clients/rtorrent.py

@ -17,7 +17,8 @@
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
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()

Loading…
Cancel
Save