mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Removed 'page' parameter
This commit is contained in:
parent
94853c0f27
commit
72826f6dd2
@ -530,18 +530,6 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
|
|||||||
</div>
|
</div>
|
||||||
#end if
|
#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':
|
#if $hasattr($curTorrentProvider, 'cat') and $curTorrentProvider.getID() == 'tntvillage':
|
||||||
<div class="field-pair">
|
<div class="field-pair">
|
||||||
<label for="${curTorrentProvider.getID()}_cat">
|
<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-title">Subtitled</span>
|
||||||
<span class="component-desc">
|
<span class="component-desc">
|
||||||
<input type="checkbox" name="${curTorrentProvider.getID()}_subtitle" id="${curTorrentProvider.getID()}_subtitle" #if $curTorrentProvider.subtitle then "checked=\"checked\"" else ""#/>
|
<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>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1104,9 +1104,6 @@ def initialize(consoleLogging=True):
|
|||||||
curTorrentProvider.getID() + '_enable_backlog',
|
curTorrentProvider.getID() + '_enable_backlog',
|
||||||
1))
|
1))
|
||||||
|
|
||||||
if hasattr(curTorrentProvider, 'page'):
|
|
||||||
curTorrentProvider.page = check_setting_int(CFG, curTorrentProvider.getID().upper(),
|
|
||||||
curTorrentProvider.getID() + '_page', 1)
|
|
||||||
if hasattr(curTorrentProvider, 'cat'):
|
if hasattr(curTorrentProvider, 'cat'):
|
||||||
curTorrentProvider.cat = check_setting_int(CFG, curTorrentProvider.getID().upper(),
|
curTorrentProvider.cat = check_setting_int(CFG, curTorrentProvider.getID().upper(),
|
||||||
curTorrentProvider.getID() + '_cat', 0)
|
curTorrentProvider.getID() + '_cat', 0)
|
||||||
@ -1619,9 +1616,6 @@ def save_config():
|
|||||||
if hasattr(curTorrentProvider, 'enable_backlog'):
|
if hasattr(curTorrentProvider, 'enable_backlog'):
|
||||||
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_enable_backlog'] = int(
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_enable_backlog'] = int(
|
||||||
curTorrentProvider.enable_backlog)
|
curTorrentProvider.enable_backlog)
|
||||||
if hasattr(curTorrentProvider, 'page'):
|
|
||||||
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_page'] = int(
|
|
||||||
curTorrentProvider.page)
|
|
||||||
if hasattr(curTorrentProvider, 'cat'):
|
if hasattr(curTorrentProvider, 'cat'):
|
||||||
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_cat'] = int(
|
new_config[curTorrentProvider.getID().upper()][curTorrentProvider.getID() + '_cat'] = int(
|
||||||
curTorrentProvider.cat)
|
curTorrentProvider.cat)
|
||||||
|
@ -79,7 +79,7 @@ class TNTVillageProvider(generic.TorrentProvider):
|
|||||||
self.password = None
|
self.password = None
|
||||||
self.ratio = None
|
self.ratio = None
|
||||||
self.cat = None
|
self.cat = None
|
||||||
self.page = None
|
self.page = 10
|
||||||
self.subtitle = None
|
self.subtitle = None
|
||||||
self.minseed = None
|
self.minseed = None
|
||||||
self.minleech = None
|
self.minleech = None
|
||||||
@ -324,6 +324,9 @@ class TNTVillageProvider(generic.TorrentProvider):
|
|||||||
if isinstance(search_string, unicode):
|
if isinstance(search_string, unicode):
|
||||||
search_string = unidecode(search_string)
|
search_string = unidecode(search_string)
|
||||||
|
|
||||||
|
if mode = 'RSS':
|
||||||
|
self.page = 2
|
||||||
|
|
||||||
last_page=0
|
last_page=0
|
||||||
y=int(self.page)
|
y=int(self.page)
|
||||||
|
|
||||||
|
@ -4315,12 +4315,6 @@ class ConfigProviders(Config):
|
|||||||
except:
|
except:
|
||||||
curTorrentProvider.enable_backlog = 0 # these exceptions are actually catching unselected checkboxes
|
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'):
|
if hasattr(curTorrentProvider, 'cat'):
|
||||||
try:
|
try:
|
||||||
curTorrentProvider.cat = int(str(kwargs[curTorrentProvider.getID() + '_cat']).strip())
|
curTorrentProvider.cat = int(str(kwargs[curTorrentProvider.getID() + '_cat']).strip())
|
||||||
|
Loading…
Reference in New Issue
Block a user