diff options
Diffstat (limited to 'module')
43 files changed, 108 insertions, 110 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py index 48dab7090..03f72da75 100644 --- a/module/plugins/Hook.py +++ b/module/plugins/Hook.py @@ -42,7 +42,7 @@ class Hook(Base):      __version__ = "0.2"      __type__ = "hook"      __threaded__ = [] -    __config__ = [ ("name", "type", "desc" , "default") ] +    __config__ = [("name", "type", "desc", "default")]      __description__ = """Interface for hook"""      __author_name__ = ("mkaay", "RaNaN")      __author_mail__ = ("mkaay@mkaay.de", "RaNaN@pyload.org") diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 228f04621..ac865e44f 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -13,16 +13,14 @@ class SerienjunkiesOrg(Crypter):      __type__ = "crypter"      __pattern__ = r"http://.*?(serienjunkies.org|dokujunkies.org)/.*?"      __version__ = "0.39" -    __config__ = [ -        ("changeNameSJ", "Packagename;Show;Season;Format;Episode", "Take SJ.org name", "Show"), -        ("changeNameDJ", "Packagename;Show;Format;Episode", "Take DJ.org name", "Show"), -        ("randomPreferred", "bool", "Randomize Preferred-List", False), -        ("hosterListMode", "OnlyOne;OnlyPreferred(One);OnlyPreferred(All);All", -         "Use for hosters (if supported)", "All"), -        ("hosterList", "str", "Preferred Hoster list (comma separated)", -         "RapidshareCom,UploadedTo,NetloadIn,FilefactoryCom,FreakshareNet,FilebaseTo,HotfileCom,DepositfilesCom,EasyshareCom,KickloadCom"), -        ("ignoreList", "str", "Ignored Hoster list (comma separated)", "MegauploadCom") -    ] +    __config__ = [("changeNameSJ", "Packagename;Show;Season;Format;Episode", "Take SJ.org name", "Show"), +                  ("changeNameDJ", "Packagename;Show;Format;Episode", "Take DJ.org name", "Show"), +                  ("randomPreferred", "bool", "Randomize Preferred-List", False), +                  ("hosterListMode", "OnlyOne;OnlyPreferred(One);OnlyPreferred(All);All", +                   "Use for hosters (if supported)", "All"), +                  ("hosterList", "str", "Preferred Hoster list (comma separated)", +                   "RapidshareCom,UploadedTo,NetloadIn,FilefactoryCom,FreakshareNet,FilebaseTo,HotfileCom,DepositfilesCom,EasyshareCom,KickloadCom"), +                  ("ignoreList", "str", "Ignored Hoster list (comma separated)", "MegauploadCom")]      __description__ = """Serienjunkies.org decrypter plugin"""      __author_name__ = ("mkaay", "godofdream")      __author_mail__ = ("mkaay@mkaay.de", "soilfiction@gmail.com") diff --git a/module/plugins/crypter/YoutubeBatch.py b/module/plugins/crypter/YoutubeBatch.py index ce2769fe0..3c5415b3e 100644 --- a/module/plugins/crypter/YoutubeBatch.py +++ b/module/plugins/crypter/YoutubeBatch.py @@ -33,9 +33,9 @@ class YoutubeBatch(Crypter):      __pattern__ = r"https?://(?:www\.)?(m\.)?youtube\.com/(?P<TYPE>user|playlist|view_play_list)(/|.*?[?&](?:list|p)=)(?P<ID>[\w-]+)"      __version__ = "1.00"      __description__ = """Youtube.com channel & playlist decrypter plugin""" -    __config__ = [("likes", "bool", "Grab user (channel) liked videos", "False"), -                  ("favorites", "bool", "Grab user (channel) favorite videos", "False"), -                  ("uploads", "bool", "Grab channel unplaylisted videos", "True")] +    __config__ = [("likes", "bool", "Grab user (channel) liked videos", False), +                  ("favorites", "bool", "Grab user (channel) favorite videos", False), +                  ("uploads", "bool", "Grab channel unplaylisted videos", True)]      __author_name__ = "Walter Purcaro"      __author_mail__ = "vuolter@gmail.com" diff --git a/module/plugins/hooks/AlldebridCom.py b/module/plugins/hooks/AlldebridCom.py index 1e6680632..0f8d3bfbb 100644 --- a/module/plugins/hooks/AlldebridCom.py +++ b/module/plugins/hooks/AlldebridCom.py @@ -11,12 +11,12 @@ class AlldebridCom(MultiHoster):      __version__ = "0.13"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), -                  ("https", "bool", "Enable HTTPS", "False"), +    __config__ = [("activated", "bool", "Activated", False), +                  ("https", "bool", "Enable HTTPS", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Alldebrid.com hook plugin"""      __author_name__ = "Andy Voigt" diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py index b2895a357..1d7df86ed 100755 --- a/module/plugins/hooks/Captcha9kw.py +++ b/module/plugins/hooks/Captcha9kw.py @@ -33,15 +33,15 @@ class Captcha9kw(Hook):      __description__ = """Send captchas to 9kw.eu"""      __config__ = [("activated", "bool", "Activated", False),                    ("force", "bool", "Force CT even if client is connected", True), -                  ("https", "bool", "Enable HTTPS", "False"), -                  ("confirm", "bool", "Confirm Captcha (Cost +6)", "False"), -                  ("captchaperhour", "int", "Captcha per hour (max. 9999)", "9999"), -                  ("prio", "int", "Prio 1-10 (Cost +1-10)", "0"), +                  ("https", "bool", "Enable HTTPS", False), +                  ("confirm", "bool", "Confirm Captcha (Cost +6)", False), +                  ("captchaperhour", "int", "Captcha per hour (max. 9999)", 9999), +                  ("prio", "int", "Prio 1-10 (Cost +1-10)", 0),                    ("selfsolve", "bool",                     "If enabled and you have a 9kw client active only you will get your captcha to solve it (Selfsolve)", -                   "False"), -                  ("timeout", "int", "Timeout (max. 300)", "300"), -                  ("passkey", "password", "API key", ""), ] +                   False), +                  ("timeout", "int", "Timeout (max. 300)", 300), +                  ("passkey", "password", "API key", "")]      __author_name__ = "RaNaN"      __author_mail__ = "RaNaN@pyload.org" diff --git a/module/plugins/hooks/CaptchaTrader.py b/module/plugins/hooks/CaptchaTrader.py index 067ee7c9b..bfb7088dc 100644 --- a/module/plugins/hooks/CaptchaTrader.py +++ b/module/plugins/hooks/CaptchaTrader.py @@ -48,7 +48,7 @@ class CaptchaTrader(Hook):      __config__ = [("activated", "bool", "Activated", False),                    ("username", "str", "Username", ""),                    ("force", "bool", "Force CT even if client is connected", False), -                  ("passkey", "password", "Password", ""), ] +                  ("passkey", "password", "Password", "")]      __author_name__ = "RaNaN"      __author_mail__ = "RaNaN@pyload.org" diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index 0fc78abfe..5a1662da3 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -28,8 +28,8 @@ class ClickAndLoad(Hook):      __name__ = "ClickAndLoad"      __version__ = "0.22"      __description__ = """Gives abillity to use jd's click and load. depends on webinterface""" -    __config__ = [("activated", "bool", "Activated", "True"), -                  ("extern", "bool", "Allow external link adding", "False")] +    __config__ = [("activated", "bool", "Activated", True), +                  ("extern", "bool", "Allow external link adding", False)]      __author_name__ = ("RaNaN", "mkaay")      __author_mail__ = ("RaNaN@pyload.de", "mkaay@mkaay.de") diff --git a/module/plugins/hooks/DebridItaliaCom.py b/module/plugins/hooks/DebridItaliaCom.py index 49733c244..24354881e 100644 --- a/module/plugins/hooks/DebridItaliaCom.py +++ b/module/plugins/hooks/DebridItaliaCom.py @@ -22,11 +22,11 @@ class DebridItaliaCom(MultiHoster):      __name__ = "DebridItaliaCom"      __version__ = "0.07"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to standard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to standard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Debriditalia.com hook plugin"""      __author_name__ = "stickell" diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py index 4049d71c5..0104ab7c9 100644 --- a/module/plugins/hooks/DownloadScheduler.py +++ b/module/plugins/hooks/DownloadScheduler.py @@ -26,10 +26,10 @@ class DownloadScheduler(Hook):      __name__ = "DownloadScheduler"      __version__ = "0.21"      __description__ = """Download Scheduler""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("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")] +                  ("abort", "bool", "Abort active downloads when start period with speed 0", False)]      __author_name__ = ("zoidberg", "stickell")      __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") diff --git a/module/plugins/hooks/EasybytezCom.py b/module/plugins/hooks/EasybytezCom.py index 2228973e4..a3a2dcb92 100644 --- a/module/plugins/hooks/EasybytezCom.py +++ b/module/plugins/hooks/EasybytezCom.py @@ -9,7 +9,7 @@ class EasybytezCom(MultiHoster):      __name__ = "EasybytezCom"      __version__ = "0.03"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "")]      __description__ = """EasyBytez.com hook plugin""" diff --git a/module/plugins/hooks/Ev0InFetcher.py b/module/plugins/hooks/Ev0InFetcher.py index 674cc07a8..8eda397ac 100644 --- a/module/plugins/hooks/Ev0InFetcher.py +++ b/module/plugins/hooks/Ev0InFetcher.py @@ -25,8 +25,8 @@ class Ev0InFetcher(Hook):      __name__ = "Ev0InFetcher"      __version__ = "0.21"      __description__ = """Checks rss feeds for Ev0.in""" -    __config__ = [("activated", "bool", "Activated", "False"), -                  ("interval", "int", "Check interval in minutes", "10"), +    __config__ = [("activated", "bool", "Activated", False), +                  ("interval", "int", "Check interval in minutes", 10),                    ("queue", "bool", "Move new shows directly to Queue", False),                    ("shows", "str", "Shows to check for (comma seperated)", ""),                    ("quality", "xvid;x264;rmvb", "Video Format", "xvid"), diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py index e2dfe9349..2cd8cb004 100644 --- a/module/plugins/hooks/ExpertDecoders.py +++ b/module/plugins/hooks/ExpertDecoders.py @@ -34,7 +34,7 @@ class ExpertDecoders(Hook):      __description__ = """Send captchas to expertdecoders.com"""      __config__ = [("activated", "bool", "Activated", False),                    ("force", "bool", "Force CT even if client is connected", False), -                  ("passkey", "password", "Access key", ""), ] +                  ("passkey", "password", "Access key", "")]      __author_name__ = ("RaNaN", "zoidberg")      __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz") diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index e557a7405..efd28ab17 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -30,7 +30,7 @@ class ExternalScripts(Hook):      __name__ = "ExternalScripts"      __version__ = "0.23"      __description__ = """Run external scripts""" -    __config__ = [("activated", "bool", "Activated", "True")] +    __config__ = [("activated", "bool", "Activated", True)]      __author_name__ = ("mkaay", "RaNaN", "spoob")      __author_mail__ = ("mkaay@mkaay.de", "ranan@pyload.org", "spoob@pyload.org") diff --git a/module/plugins/hooks/FastixRu.py b/module/plugins/hooks/FastixRu.py index 96d35e390..558da1b86 100644 --- a/module/plugins/hooks/FastixRu.py +++ b/module/plugins/hooks/FastixRu.py @@ -11,10 +11,10 @@ class FastixRu(MultiHoster):      __name__ = "FastixRu"      __version__ = "0.02"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"), -                  ("unloadFailing", "bool", "Revert to standard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to standard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Fastix.ru hook plugin"""      __author_name__ = "Massimo Rosamilia"      __author_mail__ = "max@spiritix.eu" diff --git a/module/plugins/hooks/FreeWayMe.py b/module/plugins/hooks/FreeWayMe.py index 7f3f7b386..63231a893 100644 --- a/module/plugins/hooks/FreeWayMe.py +++ b/module/plugins/hooks/FreeWayMe.py @@ -25,11 +25,11 @@ class FreeWayMe(MultiHoster):      __version__ = "0.11"      __type__ = "hook"      __description__ = """FreeWay.me hook plugin""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __author_name__ = "Nicolas Giese"      __author_mail__ = "james@free-way.me" diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 46010b2a7..82c054902 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -33,10 +33,10 @@ class HotFolder(Hook):      __name__ = "HotFolder"      __version__ = "0.11"      __description__ = """Observe folder and file for changes and add container and links""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("folder", "str", "Folder to observe", "container"), -                  ("watch_file", "bool", "Observe link file", "False"), -                  ("keep", "bool", "Keep added containers", "True"), +                  ("watch_file", "bool", "Observe link file", False), +                  ("keep", "bool", "Keep added containers", True),                    ("file", "str", "Link file", "links.txt")]      __threaded__ = []      __author_name__ = "RaNaN" diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index 0bdab002a..1945df799 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -38,16 +38,16 @@ class IRCInterface(Thread, Hook):      __name__ = "IRCInterface"      __version__ = "0.11"      __description__ = """Connect to irc and let owner perform different tasks""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("host", "str", "IRC-Server Address", "Enter your server here!"), -                  ("port", "int", "IRC-Server Port", "6667"), +                  ("port", "int", "IRC-Server Port", 6667),                    ("ident", "str", "Clients ident", "pyload-irc"),                    ("realname", "str", "Realname", "pyload-irc"),                    ("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")] +                  ("info_file", "bool", "Inform about every file finished", False), +                  ("info_pack", "bool", "Inform about every package finished", True), +                  ("captcha", "bool", "Send captcha requests", True)]      __author_name__ = "Jeix"      __author_mail__ = "Jeix@hasnomail.com" diff --git a/module/plugins/hooks/LinkdecrypterCom.py b/module/plugins/hooks/LinkdecrypterCom.py index 8918135a1..c0bf6644f 100644 --- a/module/plugins/hooks/LinkdecrypterCom.py +++ b/module/plugins/hooks/LinkdecrypterCom.py @@ -27,7 +27,7 @@ class LinkdecrypterCom(Hook):      __name__ = "LinkdecrypterCom"      __version__ = "0.19"      __description__ = """Linkdecrypter.com hook plugin""" -    __config__ = [("activated", "bool", "Activated", "False")] +    __config__ = [("activated", "bool", "Activated", False)]      __author_name__ = "zoidberg"      __author_mail__ = "zoidberg@mujmail.cz" diff --git a/module/plugins/hooks/MergeFiles.py b/module/plugins/hooks/MergeFiles.py index 770a47060..687017a4b 100644 --- a/module/plugins/hooks/MergeFiles.py +++ b/module/plugins/hooks/MergeFiles.py @@ -32,7 +32,7 @@ class MergeFiles(Hook):      __name__ = "MergeFiles"      __version__ = "0.12"      __description__ = """Merges parts splitted with hjsplit""" -    __config__ = [("activated", "bool", "Activated", "False")] +    __config__ = [("activated", "bool", "Activated", False)]      __threaded__ = ["packageFinished"]      __author_name__ = "and9000"      __author_mail__ = "me@has-no-mail.com" diff --git a/module/plugins/hooks/MultiDebridCom.py b/module/plugins/hooks/MultiDebridCom.py index a3551d1c4..ba1431431 100644 --- a/module/plugins/hooks/MultiDebridCom.py +++ b/module/plugins/hooks/MultiDebridCom.py @@ -24,11 +24,11 @@ class MultiDebridCom(MultiHoster):      __name__ = "MultiDebridCom"      __version__ = "0.01"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to standard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to standard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Multi-debrid.com hook plugin"""      __author_name__ = "stickell" diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index d662ff7af..67be26b79 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -26,7 +26,7 @@ class MultiHome(Hook):      __name__ = "MultiHome"      __version__ = "0.11"      __description__ = """Ip address changer""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("interfaces", "str", "Interfaces", "None")]      __author_name__ = "mkaay"      __author_mail__ = "mkaay@mkaay.de" diff --git a/module/plugins/hooks/MultishareCz.py b/module/plugins/hooks/MultishareCz.py index 75a6fd6a0..0291738f5 100644 --- a/module/plugins/hooks/MultishareCz.py +++ b/module/plugins/hooks/MultishareCz.py @@ -10,7 +10,7 @@ class MultishareCz(MultiHoster):      __name__ = "MultishareCz"      __version__ = "0.04"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "uloz.to")]      __description__ = """MultiShare.cz hook plugin""" diff --git a/module/plugins/hooks/OverLoadMe.py b/module/plugins/hooks/OverLoadMe.py index 09ceea3ad..e15d0b05f 100644 --- a/module/plugins/hooks/OverLoadMe.py +++ b/module/plugins/hooks/OverLoadMe.py @@ -8,12 +8,12 @@ class OverLoadMe(MultiHoster):      __name__ = "OverLoadMe"      __version__ = "0.01"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), -                  ("https", "bool", "Enable HTTPS", "True"), +    __config__ = [("activated", "bool", "Activated", False), +                  ("https", "bool", "Enable HTTPS", True),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to standard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "12")] +                  ("unloadFailing", "bool", "Revert to standard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 12)]      __description__ = """Over-Load.me hook plugin"""      __author_name__ = "marley"      __author_mail__ = "marley@over-load.me" diff --git a/module/plugins/hooks/Premium4Me.py b/module/plugins/hooks/Premium4Me.py index 4bcc79b25..57b188bb9 100644 --- a/module/plugins/hooks/Premium4Me.py +++ b/module/plugins/hooks/Premium4Me.py @@ -9,7 +9,7 @@ class Premium4Me(MultiHoster):      __version__ = "0.03"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for downloads from supported hosters:", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "")]      __description__ = """Premium.to hook plugin""" diff --git a/module/plugins/hooks/PremiumizeMe.py b/module/plugins/hooks/PremiumizeMe.py index 1c285bad8..d5b75922b 100644 --- a/module/plugins/hooks/PremiumizeMe.py +++ b/module/plugins/hooks/PremiumizeMe.py @@ -10,11 +10,11 @@ class PremiumizeMe(MultiHoster):      __type__ = "hook"      __description__ = """Premiumize.me hook plugin""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __author_name__ = "Florian Franzen"      __author_mail__ = "FlorianFranzen@gmail.com" diff --git a/module/plugins/hooks/RPNetBiz.py b/module/plugins/hooks/RPNetBiz.py index e705eb23e..d40893f6a 100644 --- a/module/plugins/hooks/RPNetBiz.py +++ b/module/plugins/hooks/RPNetBiz.py @@ -8,11 +8,11 @@ class RPNetBiz(MultiHoster):      __version__ = "0.1"      __type__ = "hook"      __description__ = """RPNet.biz hook plugin""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __author_name__ = "Dman"      __author_mail__ = "dmanugm@gmail.com" diff --git a/module/plugins/hooks/RealdebridCom.py b/module/plugins/hooks/RealdebridCom.py index a77fac096..566f9005f 100644 --- a/module/plugins/hooks/RealdebridCom.py +++ b/module/plugins/hooks/RealdebridCom.py @@ -9,12 +9,12 @@ class RealdebridCom(MultiHoster):      __version__ = "0.43"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), -                  ("https", "bool", "Enable HTTPS", "False"), +    __config__ = [("activated", "bool", "Activated", False), +                  ("https", "bool", "Enable HTTPS", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Real-Debrid.com hook plugin"""      __author_name__ = "Devirex Hazzard"      __author_mail__ = "naibaf_11@yahoo.de" diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py index 52e266b02..6c3a77ca3 100644 --- a/module/plugins/hooks/RehostTo.py +++ b/module/plugins/hooks/RehostTo.py @@ -9,11 +9,11 @@ class RehostTo(MultiHoster):      __version__ = "0.43"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to stanard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24")] +                  ("unloadFailing", "bool", "Revert to stanard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]      __description__ = """Rehost.to hook plugin"""      __author_name__ = "RaNaN" diff --git a/module/plugins/hooks/ReloadCc.py b/module/plugins/hooks/ReloadCc.py index c4b805d70..f788fbe4a 100644 --- a/module/plugins/hooks/ReloadCc.py +++ b/module/plugins/hooks/ReloadCc.py @@ -10,7 +10,7 @@ class ReloadCc(MultiHoster):      __type__ = "hook"      __description__ = """Reload.cc hook plugin""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "")] diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py index 9ae920911..d3895634b 100644 --- a/module/plugins/hooks/RestartFailed.py +++ b/module/plugins/hooks/RestartFailed.py @@ -24,8 +24,8 @@ class RestartFailed(Hook):      __name__ = "RestartFailed"      __version__ = "1.53"      __description__ = """Periodically restart all failed downloads in queue""" -    __config__ = [("activated", "bool", "Activated", "False"), -                  ("interval", "int", "Interval in minutes", "90")] +    __config__ = [("activated", "bool", "Activated", False), +                  ("interval", "int", "Interval in minutes", 90)]      __author_name__ = "Walter Purcaro"      __author_mail__ = "vuolter@gmail.com" diff --git a/module/plugins/hooks/SimplydebridCom.py b/module/plugins/hooks/SimplydebridCom.py index 71f003ce9..a523d2404 100644 --- a/module/plugins/hooks/SimplydebridCom.py +++ b/module/plugins/hooks/SimplydebridCom.py @@ -8,7 +8,7 @@ class SimplydebridCom(MultiHoster):      __name__ = "SimplydebridCom"      __version__ = "0.01"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "")]      __description__ = """Simply-Debrid.com hook plugin""" diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py index 3d6566a18..af6039ecd 100644 --- a/module/plugins/hooks/UnSkipOnFail.py +++ b/module/plugins/hooks/UnSkipOnFail.py @@ -27,7 +27,7 @@ class UnSkipOnFail(Hook):      __name__ = 'UnSkipOnFail'      __version__ = '0.01'      __description__ = """When a download fails, restart skipped duplicates""" -    __config__ = [('activated', 'bool', 'Activated', True), ] +    __config__ = [("activated", "bool", "Activated", True)]      __author_name__ = "hagg"      __author_mail__ = "" diff --git a/module/plugins/hooks/UnrestrictLi.py b/module/plugins/hooks/UnrestrictLi.py index 7643e8802..2221b2bb3 100644 --- a/module/plugins/hooks/UnrestrictLi.py +++ b/module/plugins/hooks/UnrestrictLi.py @@ -24,12 +24,12 @@ class UnrestrictLi(MultiHoster):      __name__ = "UnrestrictLi"      __version__ = "0.02"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", ""), -                  ("unloadFailing", "bool", "Revert to standard download if download fails", "False"), -                  ("interval", "int", "Reload interval in hours (0 to disable)", "24"), -                  ("history", "bool", "Delete History", "False")] +                  ("unloadFailing", "bool", "Revert to standard download if download fails", False), +                  ("interval", "int", "Reload interval in hours (0 to disable)", 24), +                  ("history", "bool", "Delete History", False)]      __description__ = """Unrestrict.li hook plugin"""      __author_name__ = "stickell" diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 381b38486..11e93c04d 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -32,8 +32,8 @@ class UpdateManager(Hook):      __name__ = "UpdateManager"      __version__ = "0.15"      __description__ = """Checks for updates""" -    __config__ = [("activated", "bool", "Activated", "True"), -                  ("interval", "int", "Check interval in minutes", "480"), +    __config__ = [("activated", "bool", "Activated", True), +                  ("interval", "int", "Check interval in minutes", 480),                    ("debug", "bool", "Check for plugin changes when in debug mode", False)]      __author_name__ = "RaNaN"      __author_mail__ = "ranan@pyload.org" diff --git a/module/plugins/hooks/WindowsPhoneToastNotify.py b/module/plugins/hooks/WindowsPhoneToastNotify.py index 1fce9f2cf..d90b95f79 100644 --- a/module/plugins/hooks/WindowsPhoneToastNotify.py +++ b/module/plugins/hooks/WindowsPhoneToastNotify.py @@ -27,8 +27,8 @@ class WindowsPhoneToastNotify(Hook):      __config__ = [("activated", "bool", "Activated", False),                    ("force", "bool", "Force even if client is connected", False),                    ("pushId", "str", "pushId", ""), -                  ("pushUrl","str","pushUrl", ""), -                  ("pushTimeout","int","Timeout between notifications in seconds","0")] +                  ("pushUrl", "str", "pushUrl", ""), +                  ("pushTimeout", "int", "Timeout between notifications in seconds", 0)]      def setup(self):          self.info = {} diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py index a1ef84be6..b30b24aa7 100644 --- a/module/plugins/hooks/XFileSharingPro.py +++ b/module/plugins/hooks/XFileSharingPro.py @@ -9,8 +9,8 @@ class XFileSharingPro(Hook):      __name__ = "XFileSharingPro"      __version__ = "0.09"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "True"), -                  ("loadDefault", "bool", "Include default (built-in) hoster list", "True"), +    __config__ = [("activated", "bool", "Activated", True), +                  ("loadDefault", "bool", "Include default (built-in) hoster list", True),                    ("includeList", "str", "Include hosters (comma separated)", ""),                    ("excludeList", "str", "Exclude hosters (comma separated)", "")]      __description__ = """XFileSharingPro hook plugin""" diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index fc38bd2e4..5ecf4e153 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -31,14 +31,14 @@ class XMPPInterface(IRCInterface, JabberClient):      __name__ = "XMPPInterface"      __version__ = "0.11"      __description__ = """Connect to jabber and let owner perform different tasks""" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("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")] +                  ("info_file", "bool", "Inform about every file finished", False), +                  ("info_pack", "bool", "Inform about every package finished", True), +                  ("captcha", "bool", "Send captcha requests", True)]      __author_name__ = "RaNaN"      __author_mail__ = "RaNaN@pyload.org" diff --git a/module/plugins/hooks/ZeveraCom.py b/module/plugins/hooks/ZeveraCom.py index 5fbf20b56..4dee83ccb 100644 --- a/module/plugins/hooks/ZeveraCom.py +++ b/module/plugins/hooks/ZeveraCom.py @@ -8,7 +8,7 @@ class ZeveraCom(MultiHoster):      __name__ = "ZeveraCom"      __version__ = "0.02"      __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), +    __config__ = [("activated", "bool", "Activated", False),                    ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),                    ("hosterList", "str", "Hoster list (comma separated)", "")]      __description__ = """Real-Debrid.com hook plugin""" diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index c0276279e..e9735832b 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -55,9 +55,9 @@ class RapidshareCom(Hoster):      __pattern__ = r"https?://[\w\.]*?rapidshare.com/(?:files/(?P<id>\d*?)/(?P<name>[^?]+)|#!download\|(?:\w+)\|(?P<id_new>\d+)\|(?P<name_new>[^|]+))"      __version__ = "1.39"      __description__ = """Rapidshare.com hoster plugin""" -    __config__ = [["server", +    __config__ = [("server",                     "Cogent;Deutsche Telekom;Level(3);Level(3) #2;GlobalCrossing;Level(3) #3;Teleglobe;GlobalCrossing #2;TeliaSonera #2;Teleglobe #2;TeliaSonera #3;TeliaSonera", -                   "Preferred Server", "None"]] +                   "Preferred Server", "None")]      __author_name__ = ("spoob", "RaNaN", "mkaay")      __author_mail__ = ("spoob@pyload.org", "ranan@pyload.org", "mkaay@mkaay.de") diff --git a/module/plugins/hoster/VeehdCom.py b/module/plugins/hoster/VeehdCom.py index 8a4433fa4..b3523491a 100644 --- a/module/plugins/hoster/VeehdCom.py +++ b/module/plugins/hoster/VeehdCom.py @@ -8,10 +8,8 @@ class VeehdCom(Hoster):      __name__ = 'VeehdCom'      __type__ = 'hoster'      __pattern__ = r'http://veehd\.com/video/\d+_\S+' -    __config__ = [ -        ('filename_spaces', 'bool', "Allow spaces in filename", 'False'), -        ('replacement_char', 'str', "Filename replacement character", '_'), -    ] +    __config__ = [("filename_spaces", "bool", "Allow spaces in filename", False), +                  ("replacement_char", "str", "Filename replacement character", "_")]      __version__ = '0.23'      __description__ = """Veehd.com hoster plugin"""      __author_name__ = "cat" diff --git a/module/plugins/hoster/XVideosCom.py b/module/plugins/hoster/XVideosCom.py index 48a1f934d..902f627a8 100644 --- a/module/plugins/hoster/XVideosCom.py +++ b/module/plugins/hoster/XVideosCom.py @@ -8,7 +8,9 @@ class XVideosCom(Hoster):      __name__ = "XVideos.com"      __version__ = "0.1"      __pattern__ = r"http://www\.xvideos\.com/video([0-9]+)/.*" -    __config__ = [] +    __description__ = """XVideos.com hoster plugin""" +    __author_name__ = "" +    __author_mail__ = ""      def process(self, pyfile):          site = self.load(pyfile.url) diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py index e1c423453..43f0dd656 100644 --- a/module/plugins/hoster/Xdcc.py +++ b/module/plugins/hoster/Xdcc.py @@ -36,11 +36,9 @@ class Xdcc(Hoster):      __version__ = "0.32"      __pattern__ = r'xdcc://.*?(/#?.*?)?/.*?/#?\d+/?'  # xdcc://irc.Abjects.net/#channel/[XDCC]|Shit/#0004/      __type__ = "hoster" -    __config__ = [ -        ("nick", "str", "Nickname", "pyload"), -        ("ident", "str", "Ident", "pyloadident"), -        ("realname", "str", "Realname", "pyloadreal") -    ] +    __config__ = [("nick", "str", "Nickname", "pyload"), +                  ("ident", "str", "Ident", "pyloadident"), +                  ("realname", "str", "Realname", "pyloadreal")]      __description__ = """Download from IRC XDCC bot"""      __author_name__ = "jeix"      __author_mail__ = "jeix@hasnomail.com" diff --git a/module/plugins/hoster/ZDF.py b/module/plugins/hoster/ZDF.py index e45717186..18aa80a00 100644 --- a/module/plugins/hoster/ZDF.py +++ b/module/plugins/hoster/ZDF.py @@ -12,7 +12,9 @@ class ZDF(Hoster):      __name__ = "ZDF Mediathek"      __version__ = "0.8"      __pattern__ = r"http://www\.zdf\.de/ZDFmediathek/[^0-9]*([0-9]+)[^0-9]*" -    __config__ = [] +    __description__ = """ZDF.de hoster plugin""" +    __author_name__ = "" +    __author_mail__ = ""      @staticmethod      def video_key(video):  | 
