diff --git a/sickbeard/providers/hdtorrents.py b/sickbeard/providers/hdtorrents.py index 5f27d351..9f9fa2e9 100644 --- a/sickbeard/providers/hdtorrents.py +++ b/sickbeard/providers/hdtorrents.py @@ -57,8 +57,8 @@ class HDTorrentsProvider(generic.TorrentProvider): self.supportsBacklog = True self.enabled = False - self.uid = None - self.hash = None + self._uid = None + self._hash = None self.username = None self.password = None self.ratio = None @@ -92,7 +92,7 @@ class HDTorrentsProvider(generic.TorrentProvider): if any(requests.utils.dict_from_cookiejar(self.session.cookies).values()): return True - if self.uid and self.hash: + if self._uid and self._hash: requests.utils.add_dict_to_cookiejar(self.session.cookies, self.cookies) @@ -114,11 +114,11 @@ class HDTorrentsProvider(generic.TorrentProvider): logger.log(u'Invalid username or password for ' + self.name + ' Check your settings', logger.ERROR) return False - self.uid = requests.utils.dict_from_cookiejar(self.session.cookies)['uid'] - self.hash = requests.utils.dict_from_cookiejar(self.session.cookies)['pass'] + self._uid = requests.utils.dict_from_cookiejar(self.session.cookies)['uid'] + self._hash = requests.utils.dict_from_cookiejar(self.session.cookies)['pass'] - self.cookies = {'uid': self.uid, - 'pass': self.hash + self.cookies = {'uid': self._uid, + 'pass': self._hash } return True