From 02ab82cbecb701e3bbeb5173e8a7eae3a75fbefb Mon Sep 17 00:00:00 2001 From: Thijs Tijsma Date: Tue, 6 Dec 2016 08:46:15 +0100 Subject: [PATCH] Removed changing of global uTorrent settings. --- .gitignore | 4 ++++ couchpotato/core/downloaders/utorrent.py | 20 +------------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index d53d129..1d21d2e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,7 @@ .coverage coverage.xml nosetests.xml + +# Visual Studio + +/.vs diff --git a/couchpotato/core/downloaders/utorrent.py b/couchpotato/core/downloaders/utorrent.py index 847eaf1..2bfc64e 100644 --- a/couchpotato/core/downloaders/utorrent.py +++ b/couchpotato/core/downloaders/utorrent.py @@ -1,4 +1,4 @@ -from base64 import b16encode, b32decode +from base64 import b16encode, b32decode from datetime import timedelta from hashlib import sha1 import cookielib @@ -74,24 +74,6 @@ class uTorrent(DownloaderBase): if not self.connect(): return False - settings = self.utorrent_api.get_settings() - if not settings: - return False - - #Fix settings in case they are not set for CPS compatibility - new_settings = {} - if not (settings.get('seed_prio_limitul') == 0 and settings['seed_prio_limitul_flag']): - new_settings['seed_prio_limitul'] = 0 - new_settings['seed_prio_limitul_flag'] = True - log.info('Updated uTorrent settings to set a torrent to complete after it the seeding requirements are met.') - - if settings.get('bt.read_only_on_complete'): #This doesn't work as this option seems to be not available through the api. Mitigated with removeReadOnly function - new_settings['bt.read_only_on_complete'] = False - log.info('Updated uTorrent settings to not set the files to read only after completing.') - - if new_settings: - self.utorrent_api.set_settings(new_settings) - torrent_params = {} if self.conf('label'): torrent_params['label'] = self.conf('label')