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:
panni
2017-11-05 04:59:51 +01:00
parent 078c6d0c21
commit 6edc6a1c6d
3 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -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: