summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/hooks/AlldebridComHook.py15
-rw-r--r--module/plugins/hooks/BypassCaptcha.py6
-rw-r--r--module/plugins/hooks/Captcha9Kw.py9
-rw-r--r--module/plugins/hooks/CaptchaBrotherhood.py16
-rw-r--r--module/plugins/hooks/Checksum.py10
-rw-r--r--module/plugins/hooks/DeathByCaptcha.py14
-rw-r--r--module/plugins/hooks/DebridItaliaComHook.py9
-rw-r--r--module/plugins/hooks/DownloadScheduler.py5
-rw-r--r--module/plugins/hooks/EasybytezComHook.py9
-rw-r--r--module/plugins/hooks/ExpertDecoders.py6
-rw-r--r--module/plugins/hooks/FastixRuHook.py9
-rw-r--r--module/plugins/hooks/FreeWayMeHook.py9
-rw-r--r--module/plugins/hooks/HighWayMeHook.py9
-rw-r--r--module/plugins/hooks/IRCInterface.py20
-rw-r--r--module/plugins/hooks/ImageTyperz.py18
-rw-r--r--module/plugins/hooks/LinksnappyComHook.py9
-rw-r--r--module/plugins/hooks/MegaDebridEuHook.py9
-rw-r--r--module/plugins/hooks/MultihostersComHook.py8
-rw-r--r--module/plugins/hooks/MultishareCzHook.py9
-rw-r--r--module/plugins/hooks/MyfastfileComHook.py9
-rw-r--r--module/plugins/hooks/NoPremiumPlHook.py9
-rw-r--r--module/plugins/hooks/OverLoadMeHook.py17
-rw-r--r--module/plugins/hooks/PremiumToHook.py9
-rw-r--r--module/plugins/hooks/PremiumizeMeHook.py9
-rw-r--r--module/plugins/hooks/PutdriveComHook.py8
-rw-r--r--module/plugins/hooks/RPNetBizHook.py9
-rw-r--r--module/plugins/hooks/RapideoPlHook.py9
-rw-r--r--module/plugins/hooks/RealdebridComHook.py14
-rw-r--r--module/plugins/hooks/RehostToHook.py9
-rw-r--r--module/plugins/hooks/SimplyPremiumComHook.py9
-rw-r--r--module/plugins/hooks/SimplydebridComHook.py9
-rw-r--r--module/plugins/hooks/SmoozedComHook.py9
-rw-r--r--module/plugins/hooks/XMPPInterface.py14
-rw-r--r--module/plugins/hooks/ZeveraComHook.py9
-rw-r--r--module/plugins/hoster/AlldebridCom.py8
-rw-r--r--module/plugins/hoster/DebridItaliaCom.py3
-rw-r--r--module/plugins/hoster/FastixRu.py3
-rw-r--r--module/plugins/hoster/FreeWayMe.py3
-rw-r--r--module/plugins/hoster/HighWayMe.py3
-rw-r--r--module/plugins/hoster/LinksnappyCom.py3
-rw-r--r--module/plugins/hoster/MegaDebridEu.py3
-rw-r--r--module/plugins/hoster/MegaRapidoNet.py3
-rw-r--r--module/plugins/hoster/MyfastfileCom.py3
-rw-r--r--module/plugins/hoster/NoPremiumPl.py3
-rw-r--r--module/plugins/hoster/OverLoadMe.py6
-rw-r--r--module/plugins/hoster/PremiumTo.py3
-rw-r--r--module/plugins/hoster/PremiumizeMe.py3
-rw-r--r--module/plugins/hoster/RPNetBiz.py3
-rw-r--r--module/plugins/hoster/RapideoPl.py3
-rw-r--r--module/plugins/hoster/RealdebridCom.py8
-rw-r--r--module/plugins/hoster/RehostTo.py3
-rw-r--r--module/plugins/hoster/SimplyPremiumCom.py3
-rw-r--r--module/plugins/hoster/SimplydebridCom.py3
-rw-r--r--module/plugins/hoster/SmoozedCom.py3
-rw-r--r--module/plugins/hoster/ZeveraCom.py3
55 files changed, 201 insertions, 226 deletions
diff --git a/module/plugins/hooks/AlldebridComHook.py b/module/plugins/hooks/AlldebridComHook.py
index c55f013a4..de24b86ed 100644
--- a/module/plugins/hooks/AlldebridComHook.py
+++ b/module/plugins/hooks/AlldebridComHook.py
@@ -8,12 +8,10 @@ class AlldebridComHook(MultiHook):
__type__ = "hook"
__version__ = "0.16"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 ),
- ("ssl" , "bool" , "Use HTTPS" , True )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Alldebrid.com hook plugin"""
__license__ = "GPLv3"
@@ -21,7 +19,6 @@ class AlldebridComHook(MultiHook):
def getHosters(self):
- https = "https" if self.getConfig('ssl') else "http"
- html = self.load(https + "://www.alldebrid.com/api.php", get={'action': "get_host"}).replace("\"", "").strip()
-
+ html = self.load("https://www.alldebrid.com/api.php",
+ get={'action': "get_host"}).replace("\"", "").strip()
return [x.strip() for x in html.split(",") if x.strip()]
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py
index 1651ea067..4869288c9 100644
--- a/module/plugins/hooks/BypassCaptcha.py
+++ b/module/plugins/hooks/BypassCaptcha.py
@@ -30,8 +30,8 @@ class BypassCaptcha(Hook):
__type__ = "hook"
__version__ = "0.07"
- __config__ = [("force", "bool", "Force BC even if client is connected", False),
- ("passkey", "password", "Passkey", "")]
+ __config__ = [("passkey" , "password", "Access key" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True)]
__description__ = """Send captchas to BypassCaptcha.com"""
__license__ = "GPLv3"
@@ -105,7 +105,7 @@ class BypassCaptcha(Hook):
if not self.getConfig('passkey'):
return False
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return False
if self.getCredits() > 0:
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py
index 7e9bd2071..aaea232f7 100644
--- a/module/plugins/hooks/Captcha9Kw.py
+++ b/module/plugins/hooks/Captcha9Kw.py
@@ -16,8 +16,7 @@ class Captcha9Kw(Hook):
__type__ = "hook"
__version__ = "0.29"
- __config__ = [("ssl" , "bool" , "Use HTTPS" , True ),
- ("force" , "bool" , "Force captcha resolving even if client is connected" , True ),
+ __config__ = [("check_client" , "bool" , "Don't use if client is connected" , True ),
("confirm" , "bool" , "Confirm Captcha (cost +6 credits)" , False ),
("captchaperhour", "int" , "Captcha per hour" , "9999" ),
("captchapermin" , "int" , "Captcha per minute" , "9999" ),
@@ -36,13 +35,11 @@ class Captcha9Kw(Hook):
interval = 0 #@TODO: Remove in 0.4.10
- API_URL = "http://www.9kw.eu/index.cgi"
+ API_URL = "https://www.9kw.eu/index.cgi"
def setup(self):
self.info = {} #@TODO: Remove in 0.4.10
- if self.getConfig('ssl'):
- self.API_URL = self.API_URL.replace("http://", "https://")
def getCredits(self):
@@ -170,7 +167,7 @@ class Captcha9Kw(Hook):
if not self.getConfig('passkey'):
return
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return
credits = self.getCredits()
diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py
index 3992c6ca7..070d92da8 100644
--- a/module/plugins/hooks/CaptchaBrotherhood.py
+++ b/module/plugins/hooks/CaptchaBrotherhood.py
@@ -39,9 +39,9 @@ class CaptchaBrotherhood(Hook):
__type__ = "hook"
__version__ = "0.09"
- __config__ = [("username", "str", "Username", ""),
- ("force", "bool", "Force CT even if client is connected", False),
- ("passkey", "password", "Password", "")]
+ __config__ = [("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True)]
__description__ = """Send captchas to CaptchaBrotherhood.com"""
__license__ = "GPLv3"
@@ -60,7 +60,7 @@ class CaptchaBrotherhood(Hook):
def getCredits(self):
res = self.load(self.API_URL + "askCredits.aspx",
- get={"username": self.getConfig('username'), "password": self.getConfig('passkey')})
+ get={"username": self.getConfig('username'), "password": self.getConfig('password')})
if not res.startswith("OK"):
raise CaptchaBrotherhoodException(res)
else:
@@ -90,7 +90,7 @@ class CaptchaBrotherhood(Hook):
url = "%ssendNewCaptcha.aspx?%s" % (self.API_URL,
urllib.urlencode({'username' : self.getConfig('username'),
- 'password' : self.getConfig('passkey'),
+ 'password' : self.getConfig('password'),
'captchaSource': "pyLoad",
'timeout' : "80"}))
@@ -124,7 +124,7 @@ class CaptchaBrotherhood(Hook):
def api_response(self, api, ticket):
res = self.load("%s%s.aspx" % (self.API_URL, api),
get={"username": self.getConfig('username'),
- "password": self.getConfig('passkey'),
+ "password": self.getConfig('password'),
"captchaID": ticket})
if not res.startswith("OK"):
raise CaptchaBrotherhoodException("Unknown response: %s" % res)
@@ -139,10 +139,10 @@ class CaptchaBrotherhood(Hook):
if not task.isTextual():
return False
- if not self.getConfig('username') or not self.getConfig('passkey'):
+ if not self.getConfig('username') or not self.getConfig('password'):
return False
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return False
if self.getCredits() > 10:
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index df81be384..409387c39 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -40,11 +40,11 @@ class Checksum(Hook):
__type__ = "hook"
__version__ = "0.17"
- __config__ = [("check_checksum", "bool", "Check checksum? (If False only size will be verified)", True),
- ("check_action", "fail;retry;nothing", "What to do if check fails?", "retry"),
- ("max_tries", "int", "Number of retries", 2),
- ("retry_action", "fail;nothing", "What to do if all retries fail?", "fail"),
- ("wait_time", "int", "Time to wait before each retry (seconds)", 1)]
+ __config__ = [("check_checksum", "bool" , "Check checksum? (If False only size will be verified)", True ),
+ ("check_action" , "fail;retry;nothing", "What to do if check fails?" , "retry"),
+ ("max_tries" , "int" , "Number of retries" , 2 ),
+ ("retry_action" , "fail;nothing" , "What to do if all retries fail?" , "fail" ),
+ ("wait_time" , "int" , "Time to wait before each retry (seconds)" , 1 )]
__description__ = """Verify downloaded file size and checksum"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py
index 50331d512..e0b319e12 100644
--- a/module/plugins/hooks/DeathByCaptcha.py
+++ b/module/plugins/hooks/DeathByCaptcha.py
@@ -53,9 +53,9 @@ class DeathByCaptcha(Hook):
__type__ = "hook"
__version__ = "0.07"
- __config__ = [("username", "str", "Username", ""),
- ("passkey", "password", "Password", ""),
- ("force", "bool", "Force DBC even if client is connected", False)]
+ __config__ = [("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True)]
__description__ = """Send captchas to DeathByCaptcha.com"""
__license__ = "GPLv3"
@@ -80,7 +80,7 @@ class DeathByCaptcha(Hook):
if not isinstance(post, dict):
post = {}
post.update({"username": self.getConfig('username'),
- "password": self.getConfig('passkey')})
+ "password": self.getConfig('password')})
res = None
try:
@@ -135,7 +135,7 @@ class DeathByCaptcha(Hook):
def submit(self, captcha, captchaType="file", match=None):
#@NOTE: Workaround multipart-post bug in HTTPRequest.py
- if re.match("^\w*$", self.getConfig('passkey')):
+ if re.match("^\w*$", self.getConfig('password')):
multipart = True
data = (pycurl.FORM_FILE, captcha)
else:
@@ -171,10 +171,10 @@ class DeathByCaptcha(Hook):
if not task.isTextual():
return False
- if not self.getConfig('username') or not self.getConfig('passkey'):
+ if not self.getConfig('username') or not self.getConfig('password'):
return False
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return False
try:
diff --git a/module/plugins/hooks/DebridItaliaComHook.py b/module/plugins/hooks/DebridItaliaComHook.py
index b9a5f1b60..b7cf78a5d 100644
--- a/module/plugins/hooks/DebridItaliaComHook.py
+++ b/module/plugins/hooks/DebridItaliaComHook.py
@@ -10,11 +10,10 @@ class DebridItaliaComHook(MultiHook):
__type__ = "hook"
__version__ = "0.12"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Debriditalia.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index 0ccc8a0ec..aa0ccbbab 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -11,9 +11,8 @@ class DownloadScheduler(Hook):
__type__ = "hook"
__version__ = "0.23"
- __config__ = [("timetable", "str", "List time periods as hh:mm full or number(kB/s)",
- "0:00 full, 7:00 250, 10:00 0, 17:00 150"),
- ("abort", "bool", "Abort active downloads when start period with speed 0", False)]
+ __config__ = [("timetable", "str" , "List time periods as hh:mm full or number(kB/s)" , "0:00 full, 7:00 250, 10:00 0, 17:00 150"),
+ ("abort" , "bool", "Abort active downloads when start period with speed 0", False )]
__description__ = """Download Scheduler"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/EasybytezComHook.py b/module/plugins/hooks/EasybytezComHook.py
index 951d95479..027081f25 100644
--- a/module/plugins/hooks/EasybytezComHook.py
+++ b/module/plugins/hooks/EasybytezComHook.py
@@ -10,11 +10,10 @@ class EasybytezComHook(MultiHook):
__type__ = "hook"
__version__ = "0.07"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """EasyBytez.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py
index af5f2cfcd..63cee2379 100644
--- a/module/plugins/hooks/ExpertDecoders.py
+++ b/module/plugins/hooks/ExpertDecoders.py
@@ -17,8 +17,8 @@ class ExpertDecoders(Hook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("force", "bool", "Force CT even if client is connected", False),
- ("passkey", "password", "Access key", "")]
+ __config__ = [("passkey" , "password", "Access key" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True)]
__description__ = """Send captchas to expertdecoders.com"""
__license__ = "GPLv3"
@@ -80,7 +80,7 @@ class ExpertDecoders(Hook):
if not self.getConfig('passkey'):
return False
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return False
if self.getCredits() > 0:
diff --git a/module/plugins/hooks/FastixRuHook.py b/module/plugins/hooks/FastixRuHook.py
index 24b18cb9f..0cd060377 100644
--- a/module/plugins/hooks/FastixRuHook.py
+++ b/module/plugins/hooks/FastixRuHook.py
@@ -9,11 +9,10 @@ class FastixRuHook(MultiHook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Fastix.ru hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/FreeWayMeHook.py b/module/plugins/hooks/FreeWayMeHook.py
index 473bd7d26..0d5087cc0 100644
--- a/module/plugins/hooks/FreeWayMeHook.py
+++ b/module/plugins/hooks/FreeWayMeHook.py
@@ -8,11 +8,10 @@ class FreeWayMeHook(MultiHook):
__type__ = "hook"
__version__ = "0.16"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """FreeWay.me hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/HighWayMeHook.py b/module/plugins/hooks/HighWayMeHook.py
index c04fc969e..824e5c475 100644
--- a/module/plugins/hooks/HighWayMeHook.py
+++ b/module/plugins/hooks/HighWayMeHook.py
@@ -9,11 +9,10 @@ class HighWayMeHook(MultiHook):
__type__ = "hook"
__version__ = "0.03"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """High-Way.me hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index 61922f657..7cdd7624f 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -20,16 +20,16 @@ class IRCInterface(Thread, Hook):
__type__ = "hook"
__version__ = "0.14"
- __config__ = [("host", "str", "IRC-Server Address", "Enter your server here!"),
- ("port", "int", "IRC-Server Port", 6667),
- ("ident", "str", "Clients ident", "pyload-irc"),
- ("realname", "str", "Realname", "pyload-irc"),
- ("ssl", "bool", "Use SSL", False),
- ("nick", "str", "Nickname the Client will take", "pyLoad-IRC"),
- ("owner", "str", "Nickname the Client will accept commands from", "Enter your nick here!"),
- ("info_file", "bool", "Inform about every file finished", False),
- ("info_pack", "bool", "Inform about every package finished", True),
- ("captcha", "bool", "Send captcha requests", True)]
+ __config__ = [("host" , "str" , "IRC-Server Address" , "Enter your server here!"),
+ ("port" , "int" , "IRC-Server Port" , 6667 ),
+ ("ident" , "str" , "Clients ident" , "pyload-irc" ),
+ ("realname" , "str" , "Realname" , "pyload-irc" ),
+ ("ssl" , "bool", "Use SSL" , False ),
+ ("nick" , "str" , "Nickname the Client will take" , "pyLoad-IRC" ),
+ ("owner" , "str" , "Nickname the Client will accept commands from", "Enter your nick here!" ),
+ ("info_file", "bool", "Inform about every file finished" , False ),
+ ("info_pack", "bool", "Inform about every package finished" , True ),
+ ("captcha" , "bool", "Send captcha requests" , True )]
__description__ = """Connect to irc and let owner perform different tasks"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py
index 15097fd5a..90849a20c 100644
--- a/module/plugins/hooks/ImageTyperz.py
+++ b/module/plugins/hooks/ImageTyperz.py
@@ -34,9 +34,9 @@ class ImageTyperz(Hook):
__type__ = "hook"
__version__ = "0.07"
- __config__ = [("username", "str", "Username", ""),
- ("passkey", "password", "Password", ""),
- ("force", "bool", "Force IT even if client is connected", False)]
+ __config__ = [("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True)]
__description__ = """Send captchas to ImageTyperz.com"""
__license__ = "GPLv3"
@@ -59,7 +59,7 @@ class ImageTyperz(Hook):
res = self.load(self.GETCREDITS_URL,
post={'action': "REQUESTBALANCE",
'username': self.getConfig('username'),
- 'password': self.getConfig('passkey')})
+ 'password': self.getConfig('password')})
if res.startswith('ERROR'):
raise ImageTyperzException(res)
@@ -80,7 +80,7 @@ class ImageTyperz(Hook):
try:
#@NOTE: Workaround multipart-post bug in HTTPRequest.py
- if re.match("^\w*$", self.getConfig('passkey')):
+ if re.match("^\w*$", self.getConfig('password')):
multipart = True
data = (pycurl.FORM_FILE, captcha)
else:
@@ -92,7 +92,7 @@ class ImageTyperz(Hook):
res = self.load(self.SUBMIT_URL,
post={'action': "UPLOADCAPTCHA",
'username': self.getConfig('username'),
- 'password': self.getConfig('passkey'), "file": data},
+ 'password': self.getConfig('password'), "file": data},
multipart=multipart,
req=req)
finally:
@@ -117,10 +117,10 @@ class ImageTyperz(Hook):
if not task.isTextual():
return False
- if not self.getConfig('username') or not self.getConfig('passkey'):
+ if not self.getConfig('username') or not self.getConfig('password'):
return False
- if self.core.isClientConnected() and not self.getConfig('force'):
+ if self.core.isClientConnected() and self.getConfig('check_client'):
return False
if self.getCredits() > 0:
@@ -138,7 +138,7 @@ class ImageTyperz(Hook):
res = self.load(self.RESPOND_URL,
post={'action': "SETBADIMAGE",
'username': self.getConfig('username'),
- 'password': self.getConfig('passkey'),
+ 'password': self.getConfig('password'),
'imageid': task.data['ticket']})
if res == "SUCCESS":
diff --git a/module/plugins/hooks/LinksnappyComHook.py b/module/plugins/hooks/LinksnappyComHook.py
index d1bd19f1e..4004a4fd6 100644
--- a/module/plugins/hooks/LinksnappyComHook.py
+++ b/module/plugins/hooks/LinksnappyComHook.py
@@ -9,11 +9,10 @@ class LinksnappyComHook(MultiHook):
__type__ = "hook"
__version__ = "0.04"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Linksnappy.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/MegaDebridEuHook.py b/module/plugins/hooks/MegaDebridEuHook.py
index 0e18f6f9d..5d45c2332 100644
--- a/module/plugins/hooks/MegaDebridEuHook.py
+++ b/module/plugins/hooks/MegaDebridEuHook.py
@@ -9,11 +9,10 @@ class MegaDebridEuHook(MultiHook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Mega-debrid.eu hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/MultihostersComHook.py b/module/plugins/hooks/MultihostersComHook.py
index 7b5e49c49..10b1c53ba 100644
--- a/module/plugins/hooks/MultihostersComHook.py
+++ b/module/plugins/hooks/MultihostersComHook.py
@@ -8,10 +8,10 @@ class MultihostersComHook(ZeveraComHook):
__type__ = "hook"
__version__ = "0.02"
- __config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed", "bool" , "Revert to standard download if download fails", False),
- ("interval" , "int" , "Reload interval in hours (0 to disable)" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Multihosters.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/MultishareCzHook.py b/module/plugins/hooks/MultishareCzHook.py
index c3e923d9b..866fea405 100644
--- a/module/plugins/hooks/MultishareCzHook.py
+++ b/module/plugins/hooks/MultishareCzHook.py
@@ -10,11 +10,10 @@ class MultishareCzHook(MultiHook):
__type__ = "hook"
__version__ = "0.07"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """MultiShare.cz hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/MyfastfileComHook.py b/module/plugins/hooks/MyfastfileComHook.py
index 10d128a31..5ba44f89e 100644
--- a/module/plugins/hooks/MyfastfileComHook.py
+++ b/module/plugins/hooks/MyfastfileComHook.py
@@ -9,11 +9,10 @@ class MyfastfileComHook(MultiHook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Myfastfile.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/NoPremiumPlHook.py b/module/plugins/hooks/NoPremiumPlHook.py
index d0527d297..3c7cc8d9d 100644
--- a/module/plugins/hooks/NoPremiumPlHook.py
+++ b/module/plugins/hooks/NoPremiumPlHook.py
@@ -9,11 +9,10 @@ class NoPremiumPlHook(MultiHook):
__type__ = "hook"
__version__ = "0.03"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """NoPremium.pl hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/OverLoadMeHook.py b/module/plugins/hooks/OverLoadMeHook.py
index a618938a4..39401000d 100644
--- a/module/plugins/hooks/OverLoadMeHook.py
+++ b/module/plugins/hooks/OverLoadMeHook.py
@@ -8,12 +8,10 @@ class OverLoadMeHook(MultiHook):
__type__ = "hook"
__version__ = "0.04"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 ),
- ("ssl" , "bool" , "Use HTTPS" , True )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Over-Load.me hook plugin"""
__license__ = "GPLv3"
@@ -21,9 +19,6 @@ class OverLoadMeHook(MultiHook):
def getHosters(self):
- https = "https" if self.getConfig('ssl') else "http"
- html = self.load(https + "://api.over-load.me/hoster.php",
- get={'auth': "0001-cb1f24dadb3aa487bda5afd3b76298935329be7700cd7-5329be77-00cf-1ca0135f"}).replace("\"", "").strip()
- self.logDebug("Hosterlist", html)
-
+ html = self.load("https://api.over-load.me/hoster.php",
+ get={'auth': "0001-cb1f24dadb3aa487bda5afd3b76298935329be7700cd7-5329be77-00cf-1ca0135f"}).replace("\"", "").strip()
return [x.strip() for x in html.split(",") if x.strip()]
diff --git a/module/plugins/hooks/PremiumToHook.py b/module/plugins/hooks/PremiumToHook.py
index 63e3c72c8..1c15bf11a 100644
--- a/module/plugins/hooks/PremiumToHook.py
+++ b/module/plugins/hooks/PremiumToHook.py
@@ -8,11 +8,10 @@ class PremiumToHook(MultiHook):
__type__ = "hook"
__version__ = "0.09"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Premium.to hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/PremiumizeMeHook.py b/module/plugins/hooks/PremiumizeMeHook.py
index 615c6c2d8..1f38d374e 100644
--- a/module/plugins/hooks/PremiumizeMeHook.py
+++ b/module/plugins/hooks/PremiumizeMeHook.py
@@ -9,11 +9,10 @@ class PremiumizeMeHook(MultiHook):
__type__ = "hook"
__version__ = "0.18"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Premiumize.me hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/PutdriveComHook.py b/module/plugins/hooks/PutdriveComHook.py
index c3ebf4ff3..931e5f565 100644
--- a/module/plugins/hooks/PutdriveComHook.py
+++ b/module/plugins/hooks/PutdriveComHook.py
@@ -8,10 +8,10 @@ class PutdriveComHook(ZeveraComHook):
__type__ = "hook"
__version__ = "0.01"
- __config__ = [("mode" , "all;listed;unlisted", "Use for plugins (if supported)" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed", "bool" , "Revert to standard download if download fails", False),
- ("interval" , "int" , "Reload interval in hours (0 to disable)" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Putdrive.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/RPNetBizHook.py b/module/plugins/hooks/RPNetBizHook.py
index 8b3dd6ea1..a19ed7228 100644
--- a/module/plugins/hooks/RPNetBizHook.py
+++ b/module/plugins/hooks/RPNetBizHook.py
@@ -9,11 +9,10 @@ class RPNetBizHook(MultiHook):
__type__ = "hook"
__version__ = "0.14"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """RPNet.biz hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/RapideoPlHook.py b/module/plugins/hooks/RapideoPlHook.py
index 3509f043c..861f9e10d 100644
--- a/module/plugins/hooks/RapideoPlHook.py
+++ b/module/plugins/hooks/RapideoPlHook.py
@@ -9,11 +9,10 @@ class RapideoPlHook(MultiHook):
__type__ = "hook"
__version__ = "0.03"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Rapideo.pl hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/RealdebridComHook.py b/module/plugins/hooks/RealdebridComHook.py
index d1a503136..a1783ce84 100644
--- a/module/plugins/hooks/RealdebridComHook.py
+++ b/module/plugins/hooks/RealdebridComHook.py
@@ -8,12 +8,10 @@ class RealdebridComHook(MultiHook):
__type__ = "hook"
__version__ = "0.46"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 ),
- ("ssl" , "bool" , "Use HTTPS" , True )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Real-Debrid.com hook plugin"""
__license__ = "GPLv3"
@@ -21,7 +19,5 @@ class RealdebridComHook(MultiHook):
def getHosters(self):
- https = "https" if self.getConfig('ssl') else "http"
- html = self.load(https + "://real-debrid.com/api/hosters.php").replace("\"", "").strip()
-
+ html = self.load("https://real-debrid.com/api/hosters.php").replace("\"", "").strip()
return [x.strip() for x in html.split(",") if x.strip()]
diff --git a/module/plugins/hooks/RehostToHook.py b/module/plugins/hooks/RehostToHook.py
index febad818a..7c51823ca 100644
--- a/module/plugins/hooks/RehostToHook.py
+++ b/module/plugins/hooks/RehostToHook.py
@@ -8,11 +8,10 @@ class RehostToHook(MultiHook):
__type__ = "hook"
__version__ = "0.50"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Rehost.to hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/SimplyPremiumComHook.py b/module/plugins/hooks/SimplyPremiumComHook.py
index e211abd30..db331283d 100644
--- a/module/plugins/hooks/SimplyPremiumComHook.py
+++ b/module/plugins/hooks/SimplyPremiumComHook.py
@@ -9,11 +9,10 @@ class SimplyPremiumComHook(MultiHook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Simply-Premium.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/SimplydebridComHook.py b/module/plugins/hooks/SimplydebridComHook.py
index b844aad49..9e29a0c9f 100644
--- a/module/plugins/hooks/SimplydebridComHook.py
+++ b/module/plugins/hooks/SimplydebridComHook.py
@@ -8,11 +8,10 @@ class SimplydebridComHook(MultiHook):
__type__ = "hook"
__version__ = "0.04"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Simply-Debrid.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/SmoozedComHook.py b/module/plugins/hooks/SmoozedComHook.py
index 24b7c8df0..2f5e370ee 100644
--- a/module/plugins/hooks/SmoozedComHook.py
+++ b/module/plugins/hooks/SmoozedComHook.py
@@ -8,11 +8,10 @@ class SmoozedComHook(MultiHook):
__type__ = "hook"
__version__ = "0.03"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Smoozed.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index 10a03603e..8a76257ad 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -14,13 +14,13 @@ class XMPPInterface(IRCInterface, JabberClient):
__type__ = "hook"
__version__ = "0.11"
- __config__ = [("jid", "str", "Jabber ID", "user@exmaple-jabber-server.org"),
- ("pw", "str", "Password", ""),
- ("tls", "bool", "Use TLS", False),
- ("owners", "str", "List of JIDs accepting commands from", "me@icq-gateway.org;some@msn-gateway.org"),
- ("info_file", "bool", "Inform about every file finished", False),
- ("info_pack", "bool", "Inform about every package finished", True),
- ("captcha", "bool", "Send captcha requests", True)]
+ __config__ = [("jid" , "str" , "Jabber ID" , "user@exmaple-jabber-server.org" ),
+ ("pw" , "str" , "Password" , "" ),
+ ("tls" , "bool", "Use TLS" , False ),
+ ("owners" , "str" , "List of JIDs accepting commands from", "me@icq-gateway.org;some@msn-gateway.org"),
+ ("info_file", "bool", "Inform about every file finished" , False ),
+ ("info_pack", "bool", "Inform about every package finished" , True ),
+ ("captcha" , "bool", "Send captcha requests" , True )]
__description__ = """Connect to jabber and let owner perform different tasks"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/ZeveraComHook.py b/module/plugins/hooks/ZeveraComHook.py
index 21c1741d2..611fc5d91 100644
--- a/module/plugins/hooks/ZeveraComHook.py
+++ b/module/plugins/hooks/ZeveraComHook.py
@@ -8,11 +8,10 @@ class ZeveraComHook(MultiHook):
__type__ = "hook"
__version__ = "0.05"
- __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
- ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
- ("revertfailed" , "bool" , "Revert to standard download if fails", True ),
- ("reload" , "bool" , "Reload plugin list" , True ),
- ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ ("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
+ ("reload" , "bool" , "Reload plugin list" , True ),
+ ("reloadinterval", "int" , "Reload interval in hours" , 12 )]
__description__ = """Zevera.com hook plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/AlldebridCom.py b/module/plugins/hoster/AlldebridCom.py
index 356a75ac1..e0daa6657 100644
--- a/module/plugins/hoster/AlldebridCom.py
+++ b/module/plugins/hoster/AlldebridCom.py
@@ -14,7 +14,8 @@ class AlldebridCom(MultiHoster):
__version__ = "0.47"
__pattern__ = r'https?://(?:www\.|s\d+\.)?alldebrid\.com/dl/[\w^_]+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Alldebrid.com multi-hoster plugin"""
__license__ = "GPLv3"
@@ -45,10 +46,5 @@ class AlldebridCom(MultiHoster):
pyfile.size = parseFileSize(data['filesize'])
self.link = data['link']
- if self.getConfig('ssl'):
- self.link = self.link.replace("http://", "https://")
- else:
- self.link = self.link.replace("https://", "http://")
-
getInfo = create_getInfo(AlldebridCom)
diff --git a/module/plugins/hoster/DebridItaliaCom.py b/module/plugins/hoster/DebridItaliaCom.py
index 8bf1b7328..9e3d87934 100644
--- a/module/plugins/hoster/DebridItaliaCom.py
+++ b/module/plugins/hoster/DebridItaliaCom.py
@@ -11,7 +11,8 @@ class DebridItaliaCom(MultiHoster):
__version__ = "0.18"
__pattern__ = r'https?://(?:www\.|s\d+\.)?debriditalia\.com/dl/\d+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Debriditalia.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/FastixRu.py b/module/plugins/hoster/FastixRu.py
index b165f1d9d..468bcc8af 100644
--- a/module/plugins/hoster/FastixRu.py
+++ b/module/plugins/hoster/FastixRu.py
@@ -13,7 +13,8 @@ class FastixRu(MultiHoster):
__version__ = "0.12"
__pattern__ = r'http://(?:www\.)?fastix\.(ru|it)/file/\w{24}'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Fastix multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/FreeWayMe.py b/module/plugins/hoster/FreeWayMe.py
index 215dd8f5a..59b3d93bb 100644
--- a/module/plugins/hoster/FreeWayMe.py
+++ b/module/plugins/hoster/FreeWayMe.py
@@ -9,7 +9,8 @@ class FreeWayMe(MultiHoster):
__version__ = "0.18"
__pattern__ = r'https?://(?:www\.)?free-way\.(bz|me)/.+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """FreeWayMe multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/HighWayMe.py b/module/plugins/hoster/HighWayMe.py
index dc7a9fc12..a33a1137b 100644
--- a/module/plugins/hoster/HighWayMe.py
+++ b/module/plugins/hoster/HighWayMe.py
@@ -12,7 +12,8 @@ class HighWayMe(MultiHoster):
__version__ = "0.12"
__pattern__ = r'https?://.+high-way\.my'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """High-Way.me multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/LinksnappyCom.py b/module/plugins/hoster/LinksnappyCom.py
index f836cb4cc..f7bdef0dd 100644
--- a/module/plugins/hoster/LinksnappyCom.py
+++ b/module/plugins/hoster/LinksnappyCom.py
@@ -13,7 +13,8 @@ class LinksnappyCom(MultiHoster):
__version__ = "0.09"
__pattern__ = r'https?://(?:[^/]+\.)?linksnappy\.com'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Linksnappy.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/MegaDebridEu.py b/module/plugins/hoster/MegaDebridEu.py
index b83b80e46..e4a002f9b 100644
--- a/module/plugins/hoster/MegaDebridEu.py
+++ b/module/plugins/hoster/MegaDebridEu.py
@@ -13,7 +13,8 @@ class MegaDebridEu(MultiHoster):
__version__ = "0.48"
__pattern__ = r'http://((?:www\d+\.|s\d+\.)?mega-debrid\.eu|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/download/file/[\w^_]+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Mega-debrid.eu multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/MegaRapidoNet.py b/module/plugins/hoster/MegaRapidoNet.py
index ce31308d0..4b0465e44 100644
--- a/module/plugins/hoster/MegaRapidoNet.py
+++ b/module/plugins/hoster/MegaRapidoNet.py
@@ -26,7 +26,8 @@ class MegaRapidoNet(MultiHoster):
__version__ = "0.03"
__pattern__ = r'http://(?:www\.)?\w+\.megarapido\.net/\?file=\w+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """MegaRapido.net multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/MyfastfileCom.py b/module/plugins/hoster/MyfastfileCom.py
index d9132c821..1211a532f 100644
--- a/module/plugins/hoster/MyfastfileCom.py
+++ b/module/plugins/hoster/MyfastfileCom.py
@@ -12,7 +12,8 @@ class MyfastfileCom(MultiHoster):
__version__ = "0.09"
__pattern__ = r'http://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Myfastfile.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/NoPremiumPl.py b/module/plugins/hoster/NoPremiumPl.py
index 29de7cc77..e300194a6 100644
--- a/module/plugins/hoster/NoPremiumPl.py
+++ b/module/plugins/hoster/NoPremiumPl.py
@@ -10,7 +10,8 @@ class NoPremiumPl(MultiHoster):
__version__ = "0.03"
__pattern__ = r'https?://direct\.nopremium\.pl.+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """NoPremium.pl multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/OverLoadMe.py b/module/plugins/hoster/OverLoadMe.py
index 8ba310b52..944d4c664 100644
--- a/module/plugins/hoster/OverLoadMe.py
+++ b/module/plugins/hoster/OverLoadMe.py
@@ -14,7 +14,8 @@ class OverLoadMe(MultiHoster):
__version__ = "0.12"
__pattern__ = r'https?://.*overload\.me/.+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Over-Load.me multi-hoster plugin"""
__license__ = "GPLv3"
@@ -26,9 +27,8 @@ class OverLoadMe(MultiHoster):
def handlePremium(self, pyfile):
- https = "https" if self.getConfig('ssl') else "http"
data = self.account.getAccountData(self.user)
- page = self.load(https + "://api.over-load.me/getdownload.php",
+ page = self.load("https://api.over-load.me/getdownload.php",
get={'auth': data['password'],
'link': pyfile.url})
diff --git a/module/plugins/hoster/PremiumTo.py b/module/plugins/hoster/PremiumTo.py
index c810a1f5a..082f17474 100644
--- a/module/plugins/hoster/PremiumTo.py
+++ b/module/plugins/hoster/PremiumTo.py
@@ -14,7 +14,8 @@ class PremiumTo(MultiHoster):
__version__ = "0.24"
__pattern__ = r'^unmatchable$'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Premium.to multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/PremiumizeMe.py b/module/plugins/hoster/PremiumizeMe.py
index 8e7d74012..bfd78853b 100644
--- a/module/plugins/hoster/PremiumizeMe.py
+++ b/module/plugins/hoster/PremiumizeMe.py
@@ -10,7 +10,8 @@ class PremiumizeMe(MultiHoster):
__version__ = "0.18"
__pattern__ = r'^unmatchable$' #: Since we want to allow the user to specify the list of hoster to use we let MultiHoster.coreReady
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Premiumize.me multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/RPNetBiz.py b/module/plugins/hoster/RPNetBiz.py
index 47f18afff..2e6271ac6 100644
--- a/module/plugins/hoster/RPNetBiz.py
+++ b/module/plugins/hoster/RPNetBiz.py
@@ -12,7 +12,8 @@ class RPNetBiz(MultiHoster):
__version__ = "0.15"
__pattern__ = r'https?://.+rpnet\.biz'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """RPNet.biz multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/RapideoPl.py b/module/plugins/hoster/RapideoPl.py
index 479371162..dc6e9253e 100644
--- a/module/plugins/hoster/RapideoPl.py
+++ b/module/plugins/hoster/RapideoPl.py
@@ -10,7 +10,8 @@ class RapideoPl(MultiHoster):
__version__ = "0.03"
__pattern__ = r'^unmatchable$'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Rapideo.pl multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 5a122155a..54cd54008 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -15,7 +15,8 @@ class RealdebridCom(MultiHoster):
__version__ = "0.68"
__pattern__ = r'https?://((?:www\.|s\d+\.)?real-debrid\.com/dl/|[\w^_]\.rdb\.so/d/)[\w^_]+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Real-Debrid.com multi-hoster plugin"""
__license__ = "GPLv3"
@@ -47,10 +48,5 @@ class RealdebridCom(MultiHoster):
pyfile.size = parseFileSize(data['file_size'])
self.link = data['generated_links'][0][-1]
- if self.getConfig('ssl'):
- self.link = self.link.replace("http://", "https://")
- else:
- self.link = self.link.replace("https://", "http://")
-
getInfo = create_getInfo(RealdebridCom)
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py
index 0d1977dc2..54778ef00 100644
--- a/module/plugins/hoster/RehostTo.py
+++ b/module/plugins/hoster/RehostTo.py
@@ -11,7 +11,8 @@ class RehostTo(MultiHoster):
__version__ = "0.22"
__pattern__ = r'https?://.*rehost\.to\..+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Rehost.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/SimplyPremiumCom.py b/module/plugins/hoster/SimplyPremiumCom.py
index 2ca900b0a..8ea121199 100644
--- a/module/plugins/hoster/SimplyPremiumCom.py
+++ b/module/plugins/hoster/SimplyPremiumCom.py
@@ -12,7 +12,8 @@ class SimplyPremiumCom(MultiHoster):
__version__ = "0.09"
__pattern__ = r'https?://.+simply-premium\.com'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Simply-Premium.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/SimplydebridCom.py b/module/plugins/hoster/SimplydebridCom.py
index 4326b8206..5e06bed88 100644
--- a/module/plugins/hoster/SimplydebridCom.py
+++ b/module/plugins/hoster/SimplydebridCom.py
@@ -11,7 +11,8 @@ class SimplydebridCom(MultiHoster):
__version__ = "0.19"
__pattern__ = r'http://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/sd\.php'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Simply-debrid.com multi-hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/SmoozedCom.py b/module/plugins/hoster/SmoozedCom.py
index ab8e7b714..9b62314ad 100644
--- a/module/plugins/hoster/SmoozedCom.py
+++ b/module/plugins/hoster/SmoozedCom.py
@@ -10,7 +10,8 @@ class SmoozedCom(MultiHoster):
__version__ = "0.07"
__pattern__ = r'^unmatchable$' #: Since we want to allow the user to specify the list of hoster to use we let MultiHoster.coreReady
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Smoozed.com hoster plugin"""
__license__ = "GPLv3"
diff --git a/module/plugins/hoster/ZeveraCom.py b/module/plugins/hoster/ZeveraCom.py
index c16348ba3..85a813acf 100644
--- a/module/plugins/hoster/ZeveraCom.py
+++ b/module/plugins/hoster/ZeveraCom.py
@@ -12,7 +12,8 @@ class ZeveraCom(MultiHoster):
__version__ = "0.31"
__pattern__ = r'https?://(?:www\.)zevera\.com/(getFiles\.ashx|Members/download\.ashx)\?.*ourl=.+'
- __config__ = [("use_premium", "bool", "Use premium account if available", True)]
+ __config__ = [("use_premium" , "bool", "Use premium account if available" , True),
+ ("revertfailed", "bool", "Revert to standard download if fails", True)]
__description__ = """Zevera.com multi-hoster plugin"""
__license__ = "GPLv3"