decrease retry amount; increase retry timeout from 1 to 10 seconds; increase retry download from 2 to 6 seconds; add OS VIP note; remove 1-3 hours missing subtitles scheduler options
This commit is contained in:
@@ -204,7 +204,7 @@
|
||||
},
|
||||
{
|
||||
"id": "provider.opensubtitles.enabled",
|
||||
"label": "Provider: Enable OpenSubtitles",
|
||||
"label": "Provider: Enable OpenSubtitles (consider becoming a VIP for ad-free subtitles and 1000 subs/day)",
|
||||
"type": "bool",
|
||||
"default": "true"
|
||||
},
|
||||
@@ -511,9 +511,6 @@
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"never",
|
||||
"every 1 hours",
|
||||
"every 2 hours",
|
||||
"every 3 hours",
|
||||
"every 6 hours",
|
||||
"every 12 hours",
|
||||
"every 24 hours"
|
||||
|
||||
@@ -33,7 +33,7 @@ CUSTOM_PATHS = []
|
||||
INCLUDE_EXOTIC_SUBS = True
|
||||
|
||||
DOWNLOAD_TRIES = 0
|
||||
DOWNLOAD_RETRY_SLEEP = 2
|
||||
DOWNLOAD_RETRY_SLEEP = 6
|
||||
|
||||
REMOVE_CRAP_FROM_FILENAME = re.compile(r"(?i)[\s_-]+(obfuscated|scrambled|nzbgeek|"
|
||||
r"chamele0n|buymore|xpost|postbot)(\.\w+)$")
|
||||
|
||||
@@ -29,7 +29,7 @@ class PunctuationMixin(object):
|
||||
|
||||
|
||||
class ProviderRetryMixin(object):
|
||||
def retry(self, f, amount=3, exc=Exception, retry_timeout=1):
|
||||
def retry(self, f, amount=2, exc=Exception, retry_timeout=10):
|
||||
i = 0
|
||||
while i <= amount:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user