mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Removed global seed ratio's
This commit is contained in:
parent
9e1402057a
commit
83d7e9fb69
@ -450,17 +450,6 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field-pair" id="Torrent_Ratio">
|
|
||||||
<label class="nocheck clearfix">
|
|
||||||
<span class="component-title" id="torrent_ratio_desc">Torrent Ratio</span>
|
|
||||||
<input type="number" step="0.1" name="torrent_ratio" id="torrent_ratio" value="$sickbeard.TORRENT_RATIO" size="2" />
|
|
||||||
</label>
|
|
||||||
<label class="nocheck clearfix">
|
|
||||||
<span class="component-title"> </span>
|
|
||||||
<span class="component-desc">Stop transfer when reaching ratio (blank for default)</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field-pair" id="Torrent_Seed_Time">
|
<div class="field-pair" id="Torrent_Seed_Time">
|
||||||
<label class="nocheck clearfix">
|
<label class="nocheck clearfix">
|
||||||
<span class="component-title" id="torrent_seed_time_desc">Seed Time</span>
|
<span class="component-title" id="torrent_seed_time_desc">Seed Time</span>
|
||||||
|
@ -237,7 +237,6 @@ TORRENT_USERNAME = None
|
|||||||
TORRENT_PASSWORD = None
|
TORRENT_PASSWORD = None
|
||||||
TORRENT_HOST = ''
|
TORRENT_HOST = ''
|
||||||
TORRENT_PATH = ''
|
TORRENT_PATH = ''
|
||||||
TORRENT_RATIO = None
|
|
||||||
TORRENT_SEED_TIME = None
|
TORRENT_SEED_TIME = None
|
||||||
TORRENT_PAUSED = False
|
TORRENT_PAUSED = False
|
||||||
TORRENT_HIGH_BANDWIDTH = False
|
TORRENT_HIGH_BANDWIDTH = False
|
||||||
@ -424,7 +423,7 @@ def initialize(consoleLogging=True):
|
|||||||
HANDLE_REVERSE_PROXY, USE_NZBS, USE_TORRENTS, NZB_METHOD, NZB_DIR, DOWNLOAD_PROPERS, CHECK_PROPERS_INTERVAL, ALLOW_HIGH_PRIORITY, TORRENT_METHOD, \
|
HANDLE_REVERSE_PROXY, USE_NZBS, USE_TORRENTS, NZB_METHOD, NZB_DIR, DOWNLOAD_PROPERS, CHECK_PROPERS_INTERVAL, ALLOW_HIGH_PRIORITY, TORRENT_METHOD, \
|
||||||
SAB_USERNAME, SAB_PASSWORD, SAB_APIKEY, SAB_CATEGORY, SAB_HOST, \
|
SAB_USERNAME, SAB_PASSWORD, SAB_APIKEY, SAB_CATEGORY, SAB_HOST, \
|
||||||
NZBGET_USERNAME, NZBGET_PASSWORD, NZBGET_CATEGORY, NZBGET_HOST, NZBGET_USE_HTTPS, backlogSearchScheduler, \
|
NZBGET_USERNAME, NZBGET_PASSWORD, NZBGET_CATEGORY, NZBGET_HOST, NZBGET_USE_HTTPS, backlogSearchScheduler, \
|
||||||
TORRENT_USERNAME, TORRENT_PASSWORD, TORRENT_HOST, TORRENT_PATH, TORRENT_RATIO, TORRENT_SEED_TIME, TORRENT_PAUSED, TORRENT_HIGH_BANDWIDTH, TORRENT_LABEL, TORRENT_VERIFY_CERT, \
|
TORRENT_USERNAME, TORRENT_PASSWORD, TORRENT_HOST, TORRENT_PATH, TORRENT_SEED_TIME, TORRENT_PAUSED, TORRENT_HIGH_BANDWIDTH, TORRENT_LABEL, TORRENT_VERIFY_CERT, \
|
||||||
USE_XBMC, XBMC_ALWAYS_ON, XBMC_NOTIFY_ONSNATCH, XBMC_NOTIFY_ONDOWNLOAD, XBMC_NOTIFY_ONSUBTITLEDOWNLOAD, XBMC_UPDATE_FULL, XBMC_UPDATE_ONLYFIRST, \
|
USE_XBMC, XBMC_ALWAYS_ON, XBMC_NOTIFY_ONSNATCH, XBMC_NOTIFY_ONDOWNLOAD, XBMC_NOTIFY_ONSUBTITLEDOWNLOAD, XBMC_UPDATE_FULL, XBMC_UPDATE_ONLYFIRST, \
|
||||||
XBMC_UPDATE_LIBRARY, XBMC_HOST, XBMC_USERNAME, XBMC_PASSWORD, BACKLOG_FREQUENCY, \
|
XBMC_UPDATE_LIBRARY, XBMC_HOST, XBMC_USERNAME, XBMC_PASSWORD, BACKLOG_FREQUENCY, \
|
||||||
USE_TRAKT, TRAKT_USERNAME, TRAKT_PASSWORD, TRAKT_API, TRAKT_REMOVE_WATCHLIST, TRAKT_USE_WATCHLIST, TRAKT_METHOD_ADD, TRAKT_START_PAUSED, traktWatchListCheckerSchedular, \
|
USE_TRAKT, TRAKT_USERNAME, TRAKT_PASSWORD, TRAKT_API, TRAKT_REMOVE_WATCHLIST, TRAKT_USE_WATCHLIST, TRAKT_METHOD_ADD, TRAKT_START_PAUSED, traktWatchListCheckerSchedular, \
|
||||||
@ -656,7 +655,6 @@ def initialize(consoleLogging=True):
|
|||||||
TORRENT_PASSWORD = check_setting_str(CFG, 'TORRENT', 'torrent_password', '')
|
TORRENT_PASSWORD = check_setting_str(CFG, 'TORRENT', 'torrent_password', '')
|
||||||
TORRENT_HOST = check_setting_str(CFG, 'TORRENT', 'torrent_host', '')
|
TORRENT_HOST = check_setting_str(CFG, 'TORRENT', 'torrent_host', '')
|
||||||
TORRENT_PATH = check_setting_str(CFG, 'TORRENT', 'torrent_path', '')
|
TORRENT_PATH = check_setting_str(CFG, 'TORRENT', 'torrent_path', '')
|
||||||
TORRENT_RATIO = check_setting_float(CFG, 'TORRENT', 'torrent_ratio', 0)
|
|
||||||
TORRENT_SEED_TIME = check_setting_int(CFG, 'TORRENT', 'torrent_seed_time', 0)
|
TORRENT_SEED_TIME = check_setting_int(CFG, 'TORRENT', 'torrent_seed_time', 0)
|
||||||
TORRENT_PAUSED = bool(check_setting_int(CFG, 'TORRENT', 'torrent_paused', 0))
|
TORRENT_PAUSED = bool(check_setting_int(CFG, 'TORRENT', 'torrent_paused', 0))
|
||||||
TORRENT_HIGH_BANDWIDTH = bool(check_setting_int(CFG, 'TORRENT', 'torrent_high_bandwidth', 0))
|
TORRENT_HIGH_BANDWIDTH = bool(check_setting_int(CFG, 'TORRENT', 'torrent_high_bandwidth', 0))
|
||||||
@ -1507,7 +1505,6 @@ def save_config():
|
|||||||
new_config['TORRENT']['torrent_password'] = helpers.encrypt(TORRENT_PASSWORD, ENCRYPTION_VERSION)
|
new_config['TORRENT']['torrent_password'] = helpers.encrypt(TORRENT_PASSWORD, ENCRYPTION_VERSION)
|
||||||
new_config['TORRENT']['torrent_host'] = TORRENT_HOST
|
new_config['TORRENT']['torrent_host'] = TORRENT_HOST
|
||||||
new_config['TORRENT']['torrent_path'] = TORRENT_PATH
|
new_config['TORRENT']['torrent_path'] = TORRENT_PATH
|
||||||
new_config['TORRENT']['torrent_ratio'] = float(TORRENT_RATIO)
|
|
||||||
new_config['TORRENT']['torrent_seed_time'] = int(TORRENT_SEED_TIME)
|
new_config['TORRENT']['torrent_seed_time'] = int(TORRENT_SEED_TIME)
|
||||||
new_config['TORRENT']['torrent_paused'] = int(TORRENT_PAUSED)
|
new_config['TORRENT']['torrent_paused'] = int(TORRENT_PAUSED)
|
||||||
new_config['TORRENT']['torrent_high_bandwidth'] = int(TORRENT_HIGH_BANDWIDTH)
|
new_config['TORRENT']['torrent_high_bandwidth'] = int(TORRENT_HIGH_BANDWIDTH)
|
||||||
|
@ -167,8 +167,6 @@ class DelugeAPI(GenericClient):
|
|||||||
ratio = ''
|
ratio = ''
|
||||||
if result.ratio:
|
if result.ratio:
|
||||||
ratio = result.ratio
|
ratio = result.ratio
|
||||||
elif sickbeard.TORRENT_RATIO:
|
|
||||||
ratio = sickbeard.TORRENT_RATIO
|
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -83,8 +83,6 @@ class TransmissionAPI(GenericClient):
|
|||||||
ratio = ''
|
ratio = ''
|
||||||
if result.ratio:
|
if result.ratio:
|
||||||
ratio = result.ratio
|
ratio = result.ratio
|
||||||
elif sickbeard.TORRENT_RATIO:
|
|
||||||
ratio = sickbeard.TORRENT_RATIO
|
|
||||||
if ratio:
|
if ratio:
|
||||||
try:
|
try:
|
||||||
float(ratio)
|
float(ratio)
|
||||||
|
@ -70,8 +70,6 @@ class uTorrentAPI(GenericClient):
|
|||||||
ratio = ''
|
ratio = ''
|
||||||
if result.ratio:
|
if result.ratio:
|
||||||
ratio = result.ratio
|
ratio = result.ratio
|
||||||
elif sickbeard.TORRENT_RATIO:
|
|
||||||
ratio = sickbeard.TORRENT_RATIO
|
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -1098,7 +1098,7 @@ class ConfigSearch:
|
|||||||
backlog_startup=None, dailysearch_startup=None,
|
backlog_startup=None, dailysearch_startup=None,
|
||||||
torrent_dir=None, torrent_username=None, torrent_password=None, torrent_host=None,
|
torrent_dir=None, torrent_username=None, torrent_password=None, torrent_host=None,
|
||||||
torrent_label=None, torrent_path=None, torrent_verify_cert=None,
|
torrent_label=None, torrent_path=None, torrent_verify_cert=None,
|
||||||
torrent_ratio=None, torrent_seed_time=None, torrent_paused=None, torrent_high_bandwidth=None, ignore_words=None):
|
torrent_seed_time=None, torrent_paused=None, torrent_high_bandwidth=None, ignore_words=None):
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
@ -1149,7 +1149,6 @@ class ConfigSearch:
|
|||||||
sickbeard.TORRENT_LABEL = torrent_label
|
sickbeard.TORRENT_LABEL = torrent_label
|
||||||
sickbeard.TORRENT_VERIFY_CERT = config.checkbox_to_value(torrent_verify_cert)
|
sickbeard.TORRENT_VERIFY_CERT = config.checkbox_to_value(torrent_verify_cert)
|
||||||
sickbeard.TORRENT_PATH = torrent_path
|
sickbeard.TORRENT_PATH = torrent_path
|
||||||
sickbeard.TORRENT_RATIO = torrent_ratio
|
|
||||||
sickbeard.TORRENT_SEED_TIME = torrent_seed_time
|
sickbeard.TORRENT_SEED_TIME = torrent_seed_time
|
||||||
sickbeard.TORRENT_PAUSED = config.checkbox_to_value(torrent_paused)
|
sickbeard.TORRENT_PAUSED = config.checkbox_to_value(torrent_paused)
|
||||||
sickbeard.TORRENT_HIGH_BANDWIDTH = config.checkbox_to_value(torrent_high_bandwidth)
|
sickbeard.TORRENT_HIGH_BANDWIDTH = config.checkbox_to_value(torrent_high_bandwidth)
|
||||||
|
Loading…
Reference in New Issue
Block a user