1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Removed 'page' parameter

This commit is contained in:
Giovanni 2015-02-18 12:10:33 +01:00
parent 94853c0f27
commit 72826f6dd2
4 changed files with 5 additions and 26 deletions

View File

@ -530,18 +530,6 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
</div>
#end if
#if $hasattr($curTorrentProvider, 'page') and $curTorrentProvider.getID() == 'tntvillage':
<div class="field-pair">
<label for="${curTorrentProvider.getID()}_page">
<span class="component-title">Page Number:</span>
<span class="component-desc">
<input type="number" name="${curTorrentProvider.getID()}_page" id="${curTorrentProvider.getID()}_page" value="$curTorrentProvider.page" class="form-control input-sm input75"/>
<p>number of torrent result page to donwload for each query</p>
</span>
</label>
</div>
#end if
#if $hasattr($curTorrentProvider, 'cat') and $curTorrentProvider.getID() == 'tntvillage':
<div class="field-pair">
<label for="${curTorrentProvider.getID()}_cat">
@ -563,7 +551,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
<span class="component-title">Subtitled</span>
<span class="component-desc">
<input type="checkbox" name="${curTorrentProvider.getID()}_subtitle" id="${curTorrentProvider.getID()}_subtitle" #if $curTorrentProvider.subtitle then "checked=\"checked\"" else ""#/>
<p>select torrent also without italian language</p>
<p>select torrent with Italian subtitle</p>
</span>
</label>
</div>

View File

@ -1104,9 +1104,6 @@ def initialize(consoleLogging=True):
curTorrentProvider.getID() + '_enable_backlog',
1))
if hasattr(curTorrentProvider, 'page'):
curTorrentProvider.page = check_setting_int(CFG, curTorrentProvider.getID().upper(),
curTorrentProvider.getID() + '_page', 1)
if hasattr(curTorrentProvider, 'cat'):
curTorrentProvider.cat = check_setting_int(CFG, curTorrentProvider.getID().upper(),
curTorrentProvider.getID() + '_cat', 0)
@ -1619,9 +1616,6 @@ def save_config():
if hasattr(curTorrentProvider, 'enable_backlog'):
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_enable_backlog'] = int(
curTorrentProvider.enable_backlog)
if hasattr(curTorrentProvider, 'page'):
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_page'] = int(
curTorrentProvider.page)
if hasattr(curTorrentProvider, 'cat'):
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_cat'] = int(
curTorrentProvider.cat)

View File

@ -79,7 +79,7 @@ class TNTVillageProvider(generic.TorrentProvider):
self.password = None
self.ratio = None
self.cat = None
self.page = None
self.page = 10
self.subtitle = None
self.minseed = None
self.minleech = None
@ -324,6 +324,9 @@ class TNTVillageProvider(generic.TorrentProvider):
if isinstance(search_string, unicode):
search_string = unidecode(search_string)
if mode = 'RSS':
self.page = 2
last_page=0
y=int(self.page)

View File

@ -4315,12 +4315,6 @@ class ConfigProviders(Config):
except:
curTorrentProvider.enable_backlog = 0 # these exceptions are actually catching unselected checkboxes
if hasattr(curTorrentProvider, 'page'):
try:
curTorrentProvider.page = int(str(kwargs[curTorrentProvider.getID() + '_page']).strip())
except:
curTorrentProvider.page = 1
if hasattr(curTorrentProvider, 'cat'):
try:
curTorrentProvider.cat = int(str(kwargs[curTorrentProvider.getID() + '_cat']).strip())