Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Aug 8, 2016
1 parent 626c429 commit 3ebc82e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sickbeard/server/web/config/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from sickbeard import (
config, logger, ui,
)
from sickbeard.providers import NewznabProvider
from sickbeard.providers import NewznabProvider, TorrentRssProvider
from sickrage.helper.common import try_int
from sickrage.helper.encoding import ek
from sickrage.providers.GenericProvider import GenericProvider
Expand Down Expand Up @@ -147,7 +147,7 @@ def canAddTorrentRssProvider(name, url, cookies, titleTAG):
provider_dict = dict(
zip([x.get_id() for x in sickbeard.torrentRssProviderList], sickbeard.torrentRssProviderList))

temp_provider = TorrentRSSProvider(name, url, cookies, titleTAG)
temp_provider = TorrentRssProvider(name, url, cookies, titleTAG)

if temp_provider.get_id() in provider_dict:
return json.dumps({'error': 'Exists as {name}'.format(name=provider_dict[temp_provider.get_id()].name)})
Expand Down Expand Up @@ -178,7 +178,7 @@ def saveTorrentRssProvider(name, url, cookies, titleTAG):
return '|'.join([provider_dict[name].get_id(), provider_dict[name].config_string()])

else:
new_provider = TorrentRSSProvider(name, url, cookies, titleTAG)
new_provider = TorrentRssProvider(name, url, cookies, titleTAG)
sickbeard.torrentRssProviderList.append(new_provider)
return '|'.join([new_provider.get_id(), new_provider.config_string()])

Expand Down Expand Up @@ -292,7 +292,7 @@ def saveProviders(self, newznab_string='', torrentrss_string='', provider_order=
cur_name, cur_url, cur_cookies, cur_title_tag = curTorrentRssProviderStr.split('|')
cur_url = config.clean_url(cur_url)

new_provider = TorrentRSSProvider(cur_name, cur_url, cur_cookies, cur_title_tag)
new_provider = TorrentRssProvider(cur_name, cur_url, cur_cookies, cur_title_tag)

cur_id = new_provider.get_id()

Expand Down

0 comments on commit 3ebc82e

Please sign in to comment.