diff options
Diffstat (limited to 'pyload/plugin/hoster')
189 files changed, 1385 insertions, 1385 deletions
diff --git a/pyload/plugin/hoster/AlldebridCom.py b/pyload/plugin/hoster/AlldebridCom.py index 03efde803..533f7beb6 100644 --- a/pyload/plugin/hoster/AlldebridCom.py +++ b/pyload/plugin/hoster/AlldebridCom.py @@ -11,15 +11,15 @@ from pyload.utils import parseFileSize class AlldebridCom(Hoster): - __name = "AlldebridCom" - __type = "hoster" - __version = "0.34" + __name__ = "AlldebridCom" + __type__ = "hoster" + __version__ = "0.34" - __pattern = r'https?://(?:[^/]*\.)?alldebrid\..*' + __pattern__ = r'https?://(?:[^/]*\.)?alldebrid\..*' - __description = """Alldebrid.com hoster plugin""" - __license = "GPLv3" - __authors = [("Andy Voigt", "spamsales@online.de")] + __description__ = """Alldebrid.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Andy Voigt", "spamsales@online.de")] def getFilename(self, url): @@ -38,7 +38,7 @@ class AlldebridCom(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "AllDebrid") diff --git a/pyload/plugin/hoster/BayfilesCom.py b/pyload/plugin/hoster/BayfilesCom.py index 3a139a796..4f2469759 100644 --- a/pyload/plugin/hoster/BayfilesCom.py +++ b/pyload/plugin/hoster/BayfilesCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class BayfilesCom(SimpleHoster): - __name = "BayfilesCom" - __type = "hoster" - __version = "0.08" + __name__ = "BayfilesCom" + __type__ = "hoster" + __version__ = "0.08" - __pattern = r'https?://(?:www\.)?bayfiles\.(com|net)/file/(?P<ID>\w+/\w+/[^/]+)' + __pattern__ = r'https?://(?:www\.)?bayfiles\.(com|net)/file/(?P<ID>\w+/\w+/[^/]+)' - __description = """Bayfiles.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Bayfiles.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/BezvadataCz.py b/pyload/plugin/hoster/BezvadataCz.py index 2f28aebf5..0b65c9e8b 100644 --- a/pyload/plugin/hoster/BezvadataCz.py +++ b/pyload/plugin/hoster/BezvadataCz.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class BezvadataCz(SimpleHoster): - __name = "BezvadataCz" - __type = "hoster" - __version = "0.25" + __name__ = "BezvadataCz" + __type__ = "hoster" + __version__ = "0.25" - __pattern = r'http://(?:www\.)?bezvadata\.cz/stahnout/.*' + __pattern__ = r'http://(?:www\.)?bezvadata\.cz/stahnout/.*' - __description = """BezvaData.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """BezvaData.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<p><b>Soubor: (?P<N>[^<]+)</b></p>' diff --git a/pyload/plugin/hoster/BillionuploadsCom.py b/pyload/plugin/hoster/BillionuploadsCom.py index aa987a9bb..43fc1f4af 100644 --- a/pyload/plugin/hoster/BillionuploadsCom.py +++ b/pyload/plugin/hoster/BillionuploadsCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class BillionuploadsCom(XFSHoster): - __name = "BillionuploadsCom" - __type = "hoster" - __version = "0.04" + __name__ = "BillionuploadsCom" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?billionuploads\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?billionuploads\.com/\w{12}' - __description = """Billionuploads.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Billionuploads.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "billionuploads.com" diff --git a/pyload/plugin/hoster/BitshareCom.py b/pyload/plugin/hoster/BitshareCom.py index 3081451f7..781f31df1 100644 --- a/pyload/plugin/hoster/BitshareCom.py +++ b/pyload/plugin/hoster/BitshareCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class BitshareCom(SimpleHoster): - __name = "BitshareCom" - __type = "hoster" - __version = "0.51" + __name__ = "BitshareCom" + __type__ = "hoster" + __version__ = "0.51" - __pattern = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>\w+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>\w+))' + __pattern__ = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>\w+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>\w+))' - __description = """Bitshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("Paul King", ""), + __description__ = """Bitshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Paul King", ""), ("fragonib", "fragonib[AT]yahoo[DOT]es")] @@ -42,7 +42,7 @@ class BitshareCom(SimpleHoster): self.pyfile = pyfile # File id - m = re.match(self.__pattern, pyfile.url) + m = re.match(self.__pattern__, pyfile.url) self.file_id = max(m.group('id1'), m.group('id2')) self.logDebug("File id is [%s]" % self.file_id) @@ -60,7 +60,7 @@ class BitshareCom(SimpleHoster): self.retry() # File name - m = re.match(self.__pattern, pyfile.url) + m = re.match(self.__pattern__, pyfile.url) name1 = m.group('name') if m else None m = re.search(self.INFO_PATTERN, self.html) name2 = m.group('N') if m else None diff --git a/pyload/plugin/hoster/BoltsharingCom.py b/pyload/plugin/hoster/BoltsharingCom.py index a84a60aeb..93f6d619a 100644 --- a/pyload/plugin/hoster/BoltsharingCom.py +++ b/pyload/plugin/hoster/BoltsharingCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class BoltsharingCom(DeadHoster): - __name = "BoltsharingCom" - __type = "hoster" - __version = "0.02" + __name__ = "BoltsharingCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?boltsharing\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?boltsharing\.com/\w{12}' - __description = """Boltsharing.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Boltsharing.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(BoltsharingCom) diff --git a/pyload/plugin/hoster/CatShareNet.py b/pyload/plugin/hoster/CatShareNet.py index e3d12c10e..2a2fb55da 100644 --- a/pyload/plugin/hoster/CatShareNet.py +++ b/pyload/plugin/hoster/CatShareNet.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class CatShareNet(SimpleHoster): - __name = "CatShareNet" - __type = "hoster" - __version = "0.08" + __name__ = "CatShareNet" + __type__ = "hoster" + __version__ = "0.08" - __pattern = r'http://(?:www\.)?catshare\.net/\w{16}' + __pattern__ = r'http://(?:www\.)?catshare\.net/\w{16}' - __description = """CatShare.net hoster plugin""" - __license = "GPLv3" - __authors = [("z00nx", "z00nx0@gmail.com"), + __description__ = """CatShare.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("z00nx", "z00nx0@gmail.com"), ("prOq", ""), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/CloudzerNet.py b/pyload/plugin/hoster/CloudzerNet.py index d499b46b4..cb764e335 100644 --- a/pyload/plugin/hoster/CloudzerNet.py +++ b/pyload/plugin/hoster/CloudzerNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class CloudzerNet(DeadHoster): - __name = "CloudzerNet" - __type = "hoster" - __version = "0.05" + __name__ = "CloudzerNet" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?(cloudzer\.net/file/|clz\.to/(file/)?)\w+' + __pattern__ = r'https?://(?:www\.)?(cloudzer\.net/file/|clz\.to/(file/)?)\w+' - __description = """Cloudzer.net hoster plugin""" - __license = "GPLv3" - __authors = [("gs", "I-_-I-_-I@web.de"), + __description__ = """Cloudzer.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("gs", "I-_-I-_-I@web.de"), ("z00nx", "z00nx0@gmail.com"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/CramitIn.py b/pyload/plugin/hoster/CramitIn.py index d4c80c0d4..f39f33a3e 100644 --- a/pyload/plugin/hoster/CramitIn.py +++ b/pyload/plugin/hoster/CramitIn.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class CramitIn(XFSHoster): - __name = "CramitIn" - __type = "hoster" - __version = "0.07" + __name__ = "CramitIn" + __type__ = "hoster" + __version__ = "0.07" - __pattern = r'http://(?:www\.)?cramit\.in/\w{12}' + __pattern__ = r'http://(?:www\.)?cramit\.in/\w{12}' - __description = """Cramit.in hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Cramit.in hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "cramit.in" diff --git a/pyload/plugin/hoster/CrockoCom.py b/pyload/plugin/hoster/CrockoCom.py index 892f5a354..f12b2e969 100644 --- a/pyload/plugin/hoster/CrockoCom.py +++ b/pyload/plugin/hoster/CrockoCom.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class CrockoCom(SimpleHoster): - __name = "CrockoCom" - __type = "hoster" - __version = "0.17" + __name__ = "CrockoCom" + __type__ = "hoster" + __version__ = "0.17" - __pattern = r'http://(?:www\.)?(crocko|easy-share)\.com/\w+' + __pattern__ = r'http://(?:www\.)?(crocko|easy-share)\.com/\w+' - __description = """Crocko hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Crocko hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<span class="fz24">Download:\s*<strong>(?P<N>.*)' diff --git a/pyload/plugin/hoster/CyberlockerCh.py b/pyload/plugin/hoster/CyberlockerCh.py index 75262a805..1c6a04caf 100644 --- a/pyload/plugin/hoster/CyberlockerCh.py +++ b/pyload/plugin/hoster/CyberlockerCh.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class CyberlockerCh(DeadHoster): - __name = "CyberlockerCh" - __type = "hoster" - __version = "0.02" + __name__ = "CyberlockerCh" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?cyberlocker\.ch/\w+' + __pattern__ = r'http://(?:www\.)?cyberlocker\.ch/\w+' - __description = """Cyberlocker.ch hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Cyberlocker.ch hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(CyberlockerCh) diff --git a/pyload/plugin/hoster/CzshareCom.py b/pyload/plugin/hoster/CzshareCom.py index 2297450e4..ad4e36ce7 100644 --- a/pyload/plugin/hoster/CzshareCom.py +++ b/pyload/plugin/hoster/CzshareCom.py @@ -10,15 +10,15 @@ from pyload.utils import parseFileSize class CzshareCom(SimpleHoster): - __name = "CzshareCom" - __type = "hoster" - __version = "0.95" + __name__ = "CzshareCom" + __type__ = "hoster" + __version__ = "0.95" - __pattern = r'http://(?:www\.)?(czshare|sdilej)\.(com|cz)/(\d+/|download\.php\?).*' + __pattern__ = r'http://(?:www\.)?(czshare|sdilej)\.(com|cz)/(\d+/|download\.php\?).*' - __description = """CZshare.com hoster plugin, now Sdilej.cz""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """CZshare.com hoster plugin, now Sdilej.cz""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<div class="tab" id="parameters">\s*<p>\s*Cel. n.zev: <a href=[^>]*>(?P<N>[^<]+)</a>' diff --git a/pyload/plugin/hoster/DailymotionCom.py b/pyload/plugin/hoster/DailymotionCom.py index d05f2f74c..84d002e9c 100644 --- a/pyload/plugin/hoster/DailymotionCom.py +++ b/pyload/plugin/hoster/DailymotionCom.py @@ -10,7 +10,7 @@ from pyload.plugin.Hoster import Hoster def getInfo(urls): result = [] - regex = re.compile(DailymotionCom.__pattern) + regex = re.compile(DailymotionCom.__pattern__) apiurl = "https://api.dailymotion.com/video/%s" request = {"fields": "access_error,status,title"} @@ -38,16 +38,16 @@ def getInfo(urls): class DailymotionCom(Hoster): - __name = "DailymotionCom" - __type = "hoster" - __version = "0.20" + __name__ = "DailymotionCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'https?://(?:www\.)?dailymotion\.com/.*video/(?P<ID>[\w^_]+)' - __config = [("quality", "Lowest;LD 144p;LD 240p;SD 384p;HQ 480p;HD 720p;HD 1080p;Highest", "Quality", "Highest")] + __pattern__ = r'https?://(?:www\.)?dailymotion\.com/.*video/(?P<ID>[\w^_]+)' + __config__ = [("quality", "Lowest;LD 144p;LD 240p;SD 384p;HQ 480p;HD 720p;HD 1080p;Highest", "Quality", "Highest")] - __description = """Dailymotion.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Dailymotion.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] def setup(self): @@ -116,7 +116,7 @@ class DailymotionCom(Hoster): def process(self, pyfile): self.checkInfo(pyfile) - id = re.match(self.__pattern, pyfile.url).group("ID") + id = re.match(self.__pattern__, pyfile.url).group("ID") self.html = self.load("http://www.dailymotion.com/embed/video/" + id, decode=True) streams = self.getStreams() diff --git a/pyload/plugin/hoster/DataHu.py b/pyload/plugin/hoster/DataHu.py index 61456de61..49e6e1aa2 100644 --- a/pyload/plugin/hoster/DataHu.py +++ b/pyload/plugin/hoster/DataHu.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class DataHu(SimpleHoster): - __name = "DataHu" - __type = "hoster" - __version = "0.02" + __name__ = "DataHu" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?data\.hu/get/\w+' + __pattern__ = r'http://(?:www\.)?data\.hu/get/\w+' - __description = """Data.hu hoster plugin""" - __license = "GPLv3" - __authors = [("crash", ""), + __description__ = """Data.hu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("crash", ""), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/DataportCz.py b/pyload/plugin/hoster/DataportCz.py index a5b03afc3..d06207257 100644 --- a/pyload/plugin/hoster/DataportCz.py +++ b/pyload/plugin/hoster/DataportCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class DataportCz(SimpleHoster): - __name = "DataportCz" - __type = "hoster" - __version = "0.40" + __name__ = "DataportCz" + __type__ = "hoster" + __version__ = "0.40" - __pattern = r'http://(?:www\.)?dataport\.cz/file/(.*)' + __pattern__ = r'http://(?:www\.)?dataport\.cz/file/(.*)' - __description = """Dataport.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Dataport.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<span itemprop="name">(?P<N>[^<]+)</span>' diff --git a/pyload/plugin/hoster/DateiTo.py b/pyload/plugin/hoster/DateiTo.py index 75fca8829..1d5110784 100644 --- a/pyload/plugin/hoster/DateiTo.py +++ b/pyload/plugin/hoster/DateiTo.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class DateiTo(SimpleHoster): - __name = "DateiTo" - __type = "hoster" - __version = "0.05" + __name__ = "DateiTo" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?datei\.to/datei/(?P<ID>\w+)\.html' + __pattern__ = r'http://(?:www\.)?datei\.to/datei/(?P<ID>\w+)\.html' - __description = """Datei.to hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Datei.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'Dateiname:</td>\s*<td colspan="2"><strong>(?P<N>.*?)</' diff --git a/pyload/plugin/hoster/DdlstorageCom.py b/pyload/plugin/hoster/DdlstorageCom.py index 616a9595b..32a5a8bb7 100644 --- a/pyload/plugin/hoster/DdlstorageCom.py +++ b/pyload/plugin/hoster/DdlstorageCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class DdlstorageCom(DeadHoster): - __name = "DdlstorageCom" - __type = "hoster" - __version = "1.02" + __name__ = "DdlstorageCom" + __type__ = "hoster" + __version__ = "1.02" - __pattern = r'https?://(?:www\.)?ddlstorage\.com/\w+' + __pattern__ = r'https?://(?:www\.)?ddlstorage\.com/\w+' - __description = """DDLStorage.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """DDLStorage.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/DebridItaliaCom.py b/pyload/plugin/hoster/DebridItaliaCom.py index 134309408..c28cdd89a 100644 --- a/pyload/plugin/hoster/DebridItaliaCom.py +++ b/pyload/plugin/hoster/DebridItaliaCom.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import replace_patterns class DebridItaliaCom(Hoster): - __name = "DebridItaliaCom" - __type = "hoster" - __version = "0.07" + __name__ = "DebridItaliaCom" + __type__ = "hoster" + __version__ = "0.07" - __pattern = r'http://s\d+\.debriditalia\.com/dl/\d+' + __pattern__ = r'http://s\d+\.debriditalia\.com/dl/\d+' - __description = """Debriditalia.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it"), + __description__ = """Debriditalia.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] @@ -30,7 +30,7 @@ class DebridItaliaCom(Hoster): def process(self, pyfile): pyfile.url = replace_patterns(pyfile.url, cls.URL_REPLACEMENTS) - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): link = pyfile.url elif not self.account: diff --git a/pyload/plugin/hoster/DepositfilesCom.py b/pyload/plugin/hoster/DepositfilesCom.py index 8dd485e92..a401e4c90 100644 --- a/pyload/plugin/hoster/DepositfilesCom.py +++ b/pyload/plugin/hoster/DepositfilesCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class DepositfilesCom(SimpleHoster): - __name = "DepositfilesCom" - __type = "hoster" - __version = "0.51" + __name__ = "DepositfilesCom" + __type__ = "hoster" + __version__ = "0.51" - __pattern = r'https?://(?:www\.)?(depositfiles\.com|dfiles\.(eu|ru))(/\w{1,3})?/files/(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(depositfiles\.com|dfiles\.(eu|ru))(/\w{1,3})?/files/(?P<ID>\w+)' - __description = """Depositfiles.com hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Depositfiles.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] @@ -28,7 +28,7 @@ class DepositfilesCom(SimpleHoster): NAME_REPLACEMENTS = [(r'\%u([0-9A-Fa-f]{4})', lambda m: unichr(int(m.group(1), 16))), (r'.*<b title="(?P<N>[^"]+).*', "\g<N>")] - URL_REPLACEMENTS = [(__pattern + ".*", "https://dfiles.eu/files/\g<ID>")] + URL_REPLACEMENTS = [(__pattern__ + ".*", "https://dfiles.eu/files/\g<ID>")] COOKIES = [("dfiles.eu", "lang_current", "en")] diff --git a/pyload/plugin/hoster/DevhostSt.py b/pyload/plugin/hoster/DevhostSt.py index 42a6e27f1..20d9930e8 100644 --- a/pyload/plugin/hoster/DevhostSt.py +++ b/pyload/plugin/hoster/DevhostSt.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class DevhostSt(SimpleHoster): - __name = "DevhostSt" - __type = "hoster" - __version = "0.03" + __name__ = "DevhostSt" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}' + __pattern__ = r'http://(?:www\.)?d-h\.st/(?!users/)\w{3}' - __description = """d-h.st hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] + __description__ = """d-h.st hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] NAME_PATTERN = r'>Filename:</span> <div title="(?P<N>.+?)"' diff --git a/pyload/plugin/hoster/DlFreeFr.py b/pyload/plugin/hoster/DlFreeFr.py index 3ebaa6c22..8f55cabea 100644 --- a/pyload/plugin/hoster/DlFreeFr.py +++ b/pyload/plugin/hoster/DlFreeFr.py @@ -35,15 +35,15 @@ class CustomBrowser(Browser): class DlFreeFr(SimpleHoster): - __name = "DlFreeFr" - __type = "hoster" - __version = "0.26" + __name__ = "DlFreeFr" + __type__ = "hoster" + __version__ = "0.26" - __pattern = r'http://(?:www\.)?dl\.free\.fr/(\w+|getfile\.pl\?file=/\w+)' + __pattern__ = r'http://(?:www\.)?dl\.free\.fr/(\w+|getfile\.pl\?file=/\w+)' - __description = """Dl.free.fr hoster plugin""" - __license = "GPLv3" - __authors = [("the-razer", "daniel_ AT gmx DOT net"), + __description__ = """Dl.free.fr hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("the-razer", "daniel_ AT gmx DOT net"), ("zoidberg", "zoidberg@mujmail.cz"), ("Toilal", "toilal.dev@gmail.com")] @@ -99,7 +99,7 @@ class DlFreeFr(SimpleHoster): headers = self.getLastHeaders() if headers.get("code") == 302 and "set-cookie" in headers and "location" in headers: m = re.search("(.*?)=(.*?); path=(.*?); domain=(.*?)", headers.get("set-cookie")) - cj = CookieJar(__name) + cj = CookieJar(__name__) if m: cj.setCookie(m.group(4), m.group(1), m.group(2), m.group(3)) else: diff --git a/pyload/plugin/hoster/DodanePl.py b/pyload/plugin/hoster/DodanePl.py index 8e543d823..2e58a9dd9 100644 --- a/pyload/plugin/hoster/DodanePl.py +++ b/pyload/plugin/hoster/DodanePl.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class DodanePl(DeadHoster): - __name = "DodanePl" - __type = "hoster" - __version = "0.03" + __name__ = "DodanePl" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?dodane\.pl/file/\d+' + __pattern__ = r'http://(?:www\.)?dodane\.pl/file/\d+' - __description = """Dodane.pl hoster plugin""" - __license = "GPLv3" - __authors = [("z00nx", "z00nx0@gmail.com")] + __description__ = """Dodane.pl hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("z00nx", "z00nx0@gmail.com")] getInfo = create_getInfo(DodanePl) diff --git a/pyload/plugin/hoster/DuploadOrg.py b/pyload/plugin/hoster/DuploadOrg.py index f5b68d3ef..6dd25407e 100644 --- a/pyload/plugin/hoster/DuploadOrg.py +++ b/pyload/plugin/hoster/DuploadOrg.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class DuploadOrg(DeadHoster): - __name = "DuploadOrg" - __type = "hoster" - __version = "0.02" + __name__ = "DuploadOrg" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?dupload\.org/\w{12}' + __pattern__ = r'http://(?:www\.)?dupload\.org/\w{12}' - __description = """Dupload.grg hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Dupload.grg hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(DuploadOrg) diff --git a/pyload/plugin/hoster/EasybytezCom.py b/pyload/plugin/hoster/EasybytezCom.py index ee6c1621b..0d5905707 100644 --- a/pyload/plugin/hoster/EasybytezCom.py +++ b/pyload/plugin/hoster/EasybytezCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class EasybytezCom(XFSHoster): - __name = "EasybytezCom" - __type = "hoster" - __version = "0.23" + __name__ = "EasybytezCom" + __type__ = "hoster" + __version__ = "0.23" - __pattern = r'http://(?:www\.)?easybytez\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?easybytez\.com/\w{12}' - __description = """Easybytez.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Easybytez.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/EdiskCz.py b/pyload/plugin/hoster/EdiskCz.py index 9e9cafa9d..18649462a 100644 --- a/pyload/plugin/hoster/EdiskCz.py +++ b/pyload/plugin/hoster/EdiskCz.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class EdiskCz(SimpleHoster): - __name = "EdiskCz" - __type = "hoster" - __version = "0.22" + __name__ = "EdiskCz" + __type__ = "hoster" + __version__ = "0.22" - __pattern = r'http://(?:www\.)?edisk\.(cz|sk|eu)/(stahni|sk/stahni|en/download)/.*' + __pattern__ = r'http://(?:www\.)?edisk\.(cz|sk|eu)/(stahni|sk/stahni|en/download)/.*' - __description = """Edisk.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Edisk.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] INFO_PATTERN = r'<span class="fl" title="(?P<N>[^"]+)">\s*.*?\((?P<S>[\d.,]+) (?P<U>[\w^_]+)\)</h1></span>' diff --git a/pyload/plugin/hoster/EgoFilesCom.py b/pyload/plugin/hoster/EgoFilesCom.py index d087f1c71..ad5ad0796 100644 --- a/pyload/plugin/hoster/EgoFilesCom.py +++ b/pyload/plugin/hoster/EgoFilesCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class EgoFilesCom(DeadHoster): - __name = "EgoFilesCom" - __type = "hoster" - __version = "0.16" + __name__ = "EgoFilesCom" + __type__ = "hoster" + __version__ = "0.16" - __pattern = r'https?://(?:www\.)?egofiles\.com/\w+' + __pattern__ = r'https?://(?:www\.)?egofiles\.com/\w+' - __description = """Egofiles.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Egofiles.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(EgoFilesCom) diff --git a/pyload/plugin/hoster/EnteruploadCom.py b/pyload/plugin/hoster/EnteruploadCom.py index 992eeec25..0be9b8d76 100644 --- a/pyload/plugin/hoster/EnteruploadCom.py +++ b/pyload/plugin/hoster/EnteruploadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class EnteruploadCom(DeadHoster): - __name = "EnteruploadCom" - __type = "hoster" - __version = "0.02" + __name__ = "EnteruploadCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?enterupload\.com/\w+' + __pattern__ = r'http://(?:www\.)?enterupload\.com/\w+' - __description = """EnterUpload.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """EnterUpload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(EnteruploadCom) diff --git a/pyload/plugin/hoster/EpicShareNet.py b/pyload/plugin/hoster/EpicShareNet.py index 93620a384..061782468 100644 --- a/pyload/plugin/hoster/EpicShareNet.py +++ b/pyload/plugin/hoster/EpicShareNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class EpicShareNet(DeadHoster): - __name = "EpicShareNet" - __type = "hoster" - __version = "0.02" + __name__ = "EpicShareNet" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:www\.)?epicshare\.net/\w{12}' + __pattern__ = r'https?://(?:www\.)?epicshare\.net/\w{12}' - __description = """EpicShare.net hoster plugin""" - __license = "GPLv3" - __authors = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] + __description__ = """EpicShare.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] getInfo = create_getInfo(EpicShareNet) diff --git a/pyload/plugin/hoster/EuroshareEu.py b/pyload/plugin/hoster/EuroshareEu.py index 7048d3553..73b7f6fcd 100644 --- a/pyload/plugin/hoster/EuroshareEu.py +++ b/pyload/plugin/hoster/EuroshareEu.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class EuroshareEu(SimpleHoster): - __name = "EuroshareEu" - __type = "hoster" - __version = "0.26" + __name__ = "EuroshareEu" + __type__ = "hoster" + __version__ = "0.26" - __pattern = r'http://(?:www\.)?euroshare\.(eu|sk|cz|hu|pl)/file/.*' + __pattern__ = r'http://(?:www\.)?euroshare\.(eu|sk|cz|hu|pl)/file/.*' - __description = """Euroshare.eu hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Euroshare.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] INFO_PATTERN = r'<span style="float: left;"><strong>(?P<N>.+?)</strong> \((?P<S>.+?)\)</span>' diff --git a/pyload/plugin/hoster/ExtabitCom.py b/pyload/plugin/hoster/ExtabitCom.py index fc99ddf31..a90e8ca86 100644 --- a/pyload/plugin/hoster/ExtabitCom.py +++ b/pyload/plugin/hoster/ExtabitCom.py @@ -10,15 +10,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class ExtabitCom(SimpleHoster): - __name = "ExtabitCom" - __type = "hoster" - __version = "0.62" + __name__ = "ExtabitCom" + __type__ = "hoster" + __version__ = "0.62" - __pattern = r'http://(?:www\.)?extabit\.com/(file|go|fid)/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?extabit\.com/(file|go|fid)/(?P<ID>\w+)' - __description = """Extabit.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Extabit.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<th>File:</th>\s*<td class="col-fileinfo">\s*<div title="(?P<N>[^"]+)">' @@ -41,7 +41,7 @@ class ExtabitCom(SimpleHoster): self.wait(secondsToMidnight(gmt=2), True) self.logDebug("URL: " + self.req.http.lastEffectiveURL) - m = re.match(self.__pattern, self.req.http.lastEffectiveURL) + m = re.match(self.__pattern__, self.req.http.lastEffectiveURL) fileID = m.group('ID') if m else self.info('ID') m = re.search(r'recaptcha/api/challenge\?k=(\w+)', self.html) diff --git a/pyload/plugin/hoster/FastixRu.py b/pyload/plugin/hoster/FastixRu.py index 7e167e245..d48912a51 100644 --- a/pyload/plugin/hoster/FastixRu.py +++ b/pyload/plugin/hoster/FastixRu.py @@ -10,15 +10,15 @@ from pyload.plugin.Hoster import Hoster class FastixRu(Hoster): - __name = "FastixRu" - __type = "hoster" - __version = "0.04" + __name__ = "FastixRu" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?fastix\.(ru|it)/file/(?P<ID>\w{24})' + __pattern__ = r'http://(?:www\.)?fastix\.(ru|it)/file/(?P<ID>\w{24})' - __description = """Fastix hoster plugin""" - __license = "GPLv3" - __authors = [("Massimo Rosamilia", "max@spiritix.eu")] + __description__ = """Fastix hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Massimo Rosamilia", "max@spiritix.eu")] def getFilename(self, url): @@ -37,7 +37,7 @@ class FastixRu(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Fastix") diff --git a/pyload/plugin/hoster/FastshareCz.py b/pyload/plugin/hoster/FastshareCz.py index 4c69e0e81..7479e6414 100644 --- a/pyload/plugin/hoster/FastshareCz.py +++ b/pyload/plugin/hoster/FastshareCz.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FastshareCz(SimpleHoster): - __name = "FastshareCz" - __type = "hoster" - __version = "0.25" + __name__ = "FastshareCz" + __type__ = "hoster" + __version__ = "0.25" - __pattern = r'http://(?:www\.)?fastshare\.cz/\d+/.+' + __pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+' - __description = """FastShare.cz hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """FastShare.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] URL_REPLACEMENTS = [("#.*", "")] diff --git a/pyload/plugin/hoster/FileApeCom.py b/pyload/plugin/hoster/FileApeCom.py index c89272f66..212e3ba9c 100644 --- a/pyload/plugin/hoster/FileApeCom.py +++ b/pyload/plugin/hoster/FileApeCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FileApeCom(DeadHoster): - __name = "FileApeCom" - __type = "hoster" - __version = "0.12" + __name__ = "FileApeCom" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'http://(?:www\.)?fileape\.com/(index\.php\?act=download\&id=|dl/)\w+' + __pattern__ = r'http://(?:www\.)?fileape\.com/(index\.php\?act=download\&id=|dl/)\w+' - __description = """FileApe.com hoster plugin""" - __license = "GPLv3" - __authors = [("espes", "")] + __description__ = """FileApe.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("espes", "")] getInfo = create_getInfo(FileApeCom) diff --git a/pyload/plugin/hoster/FileParadoxIn.py b/pyload/plugin/hoster/FileParadoxIn.py index 51046a3c2..3020ac73d 100644 --- a/pyload/plugin/hoster/FileParadoxIn.py +++ b/pyload/plugin/hoster/FileParadoxIn.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class FileParadoxIn(XFSHoster): - __name = "FileParadoxIn" - __type = "hoster" - __version = "0.04" + __name__ = "FileParadoxIn" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'https?://(?:www\.)?fileparadox\.in/\w{12}' + __pattern__ = r'https?://(?:www\.)?fileparadox\.in/\w{12}' - __description = """FileParadox.in hoster plugin""" - __license = "GPLv3" - __authors = [("RazorWing", "muppetuk1@hotmail.com")] + __description__ = """FileParadox.in hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("RazorWing", "muppetuk1@hotmail.com")] HOSTER_DOMAIN = "fileparadox.in" diff --git a/pyload/plugin/hoster/FileSharkPl.py b/pyload/plugin/hoster/FileSharkPl.py index 165c993bd..09a65ab2d 100644 --- a/pyload/plugin/hoster/FileSharkPl.py +++ b/pyload/plugin/hoster/FileSharkPl.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FileSharkPl(SimpleHoster): - __name = "FileSharkPl" - __type = "hoster" - __version = "0.04" + __name__ = "FileSharkPl" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?fileshark\.pl/pobierz/\d{6}/\w{5}' + __pattern__ = r'http://(?:www\.)?fileshark\.pl/pobierz/\d{6}/\w{5}' - __description = """FileShark.pl hoster plugin""" - __license = "GPLv3" - __authors = [("prOq", ""), + __description__ = """FileShark.pl hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("prOq", ""), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/FileStoreTo.py b/pyload/plugin/hoster/FileStoreTo.py index 6a916dab2..e69041172 100644 --- a/pyload/plugin/hoster/FileStoreTo.py +++ b/pyload/plugin/hoster/FileStoreTo.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FileStoreTo(SimpleHoster): - __name = "FileStoreTo" - __type = "hoster" - __version = "0.01" + __name__ = "FileStoreTo" + __type__ = "hoster" + __version__ = "0.01" - __pattern = r'http://(?:www\.)?filestore\.to/\?d=(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?filestore\.to/\?d=(?P<ID>\w+)' - __description = """FileStore.to hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com"), + __description__ = """FileStore.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/FilebeerInfo.py b/pyload/plugin/hoster/FilebeerInfo.py index 004613cab..92813d833 100644 --- a/pyload/plugin/hoster/FilebeerInfo.py +++ b/pyload/plugin/hoster/FilebeerInfo.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FilebeerInfo(DeadHoster): - __name = "FilebeerInfo" - __type = "hoster" - __version = "0.03" + __name__ = "FilebeerInfo" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?filebeer\.info/(?!\d*~f)(?P<ID>\w+).*' + __pattern__ = r'http://(?:www\.)?filebeer\.info/(?!\d*~f)(?P<ID>\w+).*' - __description = """Filebeer.info plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Filebeer.info plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(FilebeerInfo) diff --git a/pyload/plugin/hoster/FilecloudIo.py b/pyload/plugin/hoster/FilecloudIo.py index 792f563d6..778116ec2 100644 --- a/pyload/plugin/hoster/FilecloudIo.py +++ b/pyload/plugin/hoster/FilecloudIo.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FilecloudIo(SimpleHoster): - __name = "FilecloudIo" - __type = "hoster" - __version = "0.05" + __name__ = "FilecloudIo" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?(?:filecloud\.io|ifile\.it|mihd\.net)/(?P<ID>\w+).*' + __pattern__ = r'http://(?:www\.)?(?:filecloud\.io|ifile\.it|mihd\.net)/(?P<ID>\w+).*' - __description = """Filecloud.io hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Filecloud.io hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/FilefactoryCom.py b/pyload/plugin/hoster/FilefactoryCom.py index c46cac679..4c7bb7978 100644 --- a/pyload/plugin/hoster/FilefactoryCom.py +++ b/pyload/plugin/hoster/FilefactoryCom.py @@ -12,22 +12,22 @@ def getInfo(urls): for url in urls: h = getURL(url, just_header=True) m = re.search(r'Location: (.+)\r\n', h) - if m and not re.match(m.group(1), FilefactoryCom.__pattern): #: It's a direct link! Skipping + if m and not re.match(m.group(1), FilefactoryCom.__pattern__): #: It's a direct link! Skipping yield (url, 0, 3, url) else: #: It's a standard html page yield parseFileInfo(FilefactoryCom, url, getURL(url)) class FilefactoryCom(SimpleHoster): - __name = "FilefactoryCom" - __type = "hoster" - __version = "0.52" + __name__ = "FilefactoryCom" + __type__ = "hoster" + __version__ = "0.52" - __pattern = r'https?://(?:www\.)?filefactory\.com/(file|trafficshare/\w+)/\w+' + __pattern__ = r'https?://(?:www\.)?filefactory\.com/(file|trafficshare/\w+)/\w+' - __description = """Filefactory.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it"), + __description__ = """Filefactory.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/FilejungleCom.py b/pyload/plugin/hoster/FilejungleCom.py index 3fa567a6b..5d493ed7c 100644 --- a/pyload/plugin/hoster/FilejungleCom.py +++ b/pyload/plugin/hoster/FilejungleCom.py @@ -5,15 +5,15 @@ from pyload.plugin.Plugin import chunks class FilejungleCom(FileserveCom): - __name = "FilejungleCom" - __type = "hoster" - __version = "0.51" + __name__ = "FilejungleCom" + __type__ = "hoster" + __version__ = "0.51" - __pattern = r'http://(?:www\.)?filejungle\.com/f/(?P<id>[^/]+).*' + __pattern__ = r'http://(?:www\.)?filejungle\.com/f/(?P<id>[^/]+).*' - __description = """Filejungle.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Filejungle.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] URLS = ["http://www.filejungle.com/f/", "http://www.filejungle.com/check_links.php", diff --git a/pyload/plugin/hoster/FileomCom.py b/pyload/plugin/hoster/FileomCom.py index 06b5921fe..9c379546d 100644 --- a/pyload/plugin/hoster/FileomCom.py +++ b/pyload/plugin/hoster/FileomCom.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class FileomCom(XFSHoster): - __name = "FileomCom" - __type = "hoster" - __version = "0.05" + __name__ = "FileomCom" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?fileom\.com/\w{12}' + __pattern__ = r'https?://(?:www\.)?fileom\.com/\w{12}' - __description = """Fileom.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Fileom.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] HOSTER_DOMAIN = "fileom.com" diff --git a/pyload/plugin/hoster/FilepostCom.py b/pyload/plugin/hoster/FilepostCom.py index f7ed38a5c..950474c06 100644 --- a/pyload/plugin/hoster/FilepostCom.py +++ b/pyload/plugin/hoster/FilepostCom.py @@ -10,15 +10,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FilepostCom(SimpleHoster): - __name = "FilepostCom" - __type = "hoster" - __version = "0.30" + __name__ = "FilepostCom" + __type__ = "hoster" + __version__ = "0.30" - __pattern = r'https?://(?:www\.)?(?:filepost\.com/files|fp\.io)/(?P<ID>[^/]+)' + __pattern__ = r'https?://(?:www\.)?(?:filepost\.com/files|fp\.io)/(?P<ID>[^/]+)' - __description = """Filepost.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Filepost.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] INFO_PATTERN = r'<input type="text" id="url" value=\'<a href[^>]*>(?P<N>[^>]+?) - (?P<S>[\d.,]+) (?P<U>[\w^_]+)</a>\' class="inp_text"/>' diff --git a/pyload/plugin/hoster/FilepupNet.py b/pyload/plugin/hoster/FilepupNet.py index 71ad44ecd..65ac7a8f9 100644 --- a/pyload/plugin/hoster/FilepupNet.py +++ b/pyload/plugin/hoster/FilepupNet.py @@ -10,15 +10,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FilepupNet(SimpleHoster): - __name = "FilepupNet" - __type = "hoster" - __version = "0.02" + __name__ = "FilepupNet" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?filepup\.net/files/\w+' + __pattern__ = r'http://(?:www\.)?filepup\.net/files/\w+' - __description = """Filepup.net hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de"), + __description__ = """Filepup.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/FilerNet.py b/pyload/plugin/hoster/FilerNet.py index 4b355f91e..9a1008759 100644 --- a/pyload/plugin/hoster/FilerNet.py +++ b/pyload/plugin/hoster/FilerNet.py @@ -13,15 +13,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FilerNet(SimpleHoster): - __name = "FilerNet" - __type = "hoster" - __version = "0.10" + __name__ = "FilerNet" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'https?://(?:www\.)?filer\.net/get/\w+' + __pattern__ = r'https?://(?:www\.)?filer\.net/get/\w+' - __description = """Filer.net hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it") + __description__ = """Filer.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it") ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/FilerioCom.py b/pyload/plugin/hoster/FilerioCom.py index 19be7ef3a..b43247c9d 100644 --- a/pyload/plugin/hoster/FilerioCom.py +++ b/pyload/plugin/hoster/FilerioCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class FilerioCom(XFSHoster): - __name = "FilerioCom" - __type = "hoster" - __version = "0.07" + __name__ = "FilerioCom" + __type__ = "hoster" + __version__ = "0.07" - __pattern = r'http://(?:www\.)?(filerio\.(in|com)|filekeen\.com)/\w{12}' + __pattern__ = r'http://(?:www\.)?(filerio\.(in|com)|filekeen\.com)/\w{12}' - __description = """FileRio.in hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """FileRio.in hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "filerio.in" diff --git a/pyload/plugin/hoster/FilesMailRu.py b/pyload/plugin/hoster/FilesMailRu.py index 47d1aa8e0..d93a2eada 100644 --- a/pyload/plugin/hoster/FilesMailRu.py +++ b/pyload/plugin/hoster/FilesMailRu.py @@ -30,15 +30,15 @@ def getInfo(urls): class FilesMailRu(Hoster): - __name = "FilesMailRu" - __type = "hoster" - __version = "0.31" + __name__ = "FilesMailRu" + __type__ = "hoster" + __version__ = "0.31" - __pattern = r'http://(?:www\.)?files\.mail\.ru/.*' + __pattern__ = r'http://(?:www\.)?files\.mail\.ru/.*' - __description = """Files.mail.ru hoster plugin""" - __license = "GPLv3" - __authors = [("oZiRiz", "ich@oziriz.de")] + __description__ = """Files.mail.ru hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("oZiRiz", "ich@oziriz.de")] def setup(self): diff --git a/pyload/plugin/hoster/FileserveCom.py b/pyload/plugin/hoster/FileserveCom.py index 27f1a95f8..782f09188 100644 --- a/pyload/plugin/hoster/FileserveCom.py +++ b/pyload/plugin/hoster/FileserveCom.py @@ -31,15 +31,15 @@ def checkFile(plugin, urls): class FileserveCom(Hoster): - __name = "FileserveCom" - __type = "hoster" - __version = "0.52" + __name__ = "FileserveCom" + __type__ = "hoster" + __version__ = "0.52" - __pattern = r'http://(?:www\.)?fileserve\.com/file/(?P<id>[^/]+).*' + __pattern__ = r'http://(?:www\.)?fileserve\.com/file/(?P<id>[^/]+).*' - __description = """Fileserve.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Fileserve.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("mkaay", "mkaay@mkaay.de"), ("Paul King", ""), ("zoidberg", "zoidberg@mujmail.cz")] @@ -59,7 +59,7 @@ class FileserveCom(Hoster): def setup(self): self.resumeDownload = self.multiDL = self.premium - self.file_id = re.match(self.__pattern, self.pyfile.url).group('id') + self.file_id = re.match(self.__pattern__, self.pyfile.url).group('id') self.url = "%s%s" % (self.URLS[0], self.file_id) self.logDebug("File ID: %s URL: %s" % (self.file_id, self.url)) @@ -142,7 +142,7 @@ class FileserveCom(Hoster): if "fail" in res: self.fail(_("Failed getting wait time")) - if self.__name == "FilejungleCom": + if self.__name__ == "FilejungleCom": m = re.search(r'"waitTime":(\d+)', res) if m is None: self.fail(_("Cannot get wait time")) @@ -182,7 +182,7 @@ class FileserveCom(Hoster): def handlePremium(self): premium_url = None - if self.__name == "FileserveCom": + if self.__name__ == "FileserveCom": #try api download res = self.load("http://app.fileserve.com/api/download/premium/", post={"username": self.user, diff --git a/pyload/plugin/hoster/FileshareInUa.py b/pyload/plugin/hoster/FileshareInUa.py index 94897d804..5f5089e54 100644 --- a/pyload/plugin/hoster/FileshareInUa.py +++ b/pyload/plugin/hoster/FileshareInUa.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FileshareInUa(DeadHoster): - __name = "FileshareInUa" - __type = "hoster" - __version = "0.02" + __name__ = "FileshareInUa" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:www\.)?fileshare\.in\.ua/\w{7}' + __pattern__ = r'https?://(?:www\.)?fileshare\.in\.ua/\w{7}' - __description = """Fileshare.in.ua hoster plugin""" - __license = "GPLv3" - __authors = [("fwannmacher", "felipe@warhammerproject.com")] + __description__ = """Fileshare.in.ua hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("fwannmacher", "felipe@warhammerproject.com")] getInfo = create_getInfo(FileshareInUa) diff --git a/pyload/plugin/hoster/FilesonicCom.py b/pyload/plugin/hoster/FilesonicCom.py index cfb0e563b..c2b87d4d7 100644 --- a/pyload/plugin/hoster/FilesonicCom.py +++ b/pyload/plugin/hoster/FilesonicCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FilesonicCom(DeadHoster): - __name = "FilesonicCom" - __type = "hoster" - __version = "0.35" + __name__ = "FilesonicCom" + __type__ = "hoster" + __version__ = "0.35" - __pattern = r'http://(?:www\.)?filesonic\.com/file/\w+' + __pattern__ = r'http://(?:www\.)?filesonic\.com/file/\w+' - __description = """Filesonic.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Filesonic.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("paulking", "")] diff --git a/pyload/plugin/hoster/FilezyNet.py b/pyload/plugin/hoster/FilezyNet.py index f80d3a59d..1fcc9363d 100644 --- a/pyload/plugin/hoster/FilezyNet.py +++ b/pyload/plugin/hoster/FilezyNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FilezyNet(DeadHoster): - __name = "FilezyNet" - __type = "hoster" - __version = "0.20" + __name__ = "FilezyNet" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?filezy\.net/\w{12}' + __pattern__ = r'http://(?:www\.)?filezy\.net/\w{12}' - __description = """Filezy.net hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """Filezy.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] getInfo = create_getInfo(FilezyNet) diff --git a/pyload/plugin/hoster/FiredriveCom.py b/pyload/plugin/hoster/FiredriveCom.py index a889035f0..3395fc261 100644 --- a/pyload/plugin/hoster/FiredriveCom.py +++ b/pyload/plugin/hoster/FiredriveCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FiredriveCom(DeadHoster): - __name = "FiredriveCom" - __type = "hoster" - __version = "0.05" + __name__ = "FiredriveCom" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?(firedrive|putlocker)\.com/(mobile/)?(file|embed)/(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(firedrive|putlocker)\.com/(mobile/)?(file|embed)/(?P<ID>\w+)' - __description = """Firedrive.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Firedrive.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] getInfo = create_getInfo(FiredriveCom) diff --git a/pyload/plugin/hoster/FlyFilesNet.py b/pyload/plugin/hoster/FlyFilesNet.py index a76ce846d..2330ba786 100644 --- a/pyload/plugin/hoster/FlyFilesNet.py +++ b/pyload/plugin/hoster/FlyFilesNet.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster class FlyFilesNet(SimpleHoster): - __name = "FlyFilesNet" - __type = "hoster" - __version = "0.10" + __name__ = "FlyFilesNet" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'http://(?:www\.)?flyfiles\.net/.*' + __pattern__ = r'http://(?:www\.)?flyfiles\.net/.*' - __description = """FlyFiles.net hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """FlyFiles.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] SESSION_PATTERN = r'flyfiles\.net/(.*)/.*' NAME_PATTERN = r'flyfiles\.net/.*/(.*)' diff --git a/pyload/plugin/hoster/FourSharedCom.py b/pyload/plugin/hoster/FourSharedCom.py index e7097271d..002173b89 100644 --- a/pyload/plugin/hoster/FourSharedCom.py +++ b/pyload/plugin/hoster/FourSharedCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class FourSharedCom(SimpleHoster): - __name = "FourSharedCom" - __type = "hoster" - __version = "0.30" + __name__ = "FourSharedCom" + __type__ = "hoster" + __version__ = "0.30" - __pattern = r'https?://(?:www\.)?4shared(\-china)?\.com/(account/)?(download|get|file|document|photo|video|audio|mp3|office|rar|zip|archive|music)/.+?/.*' + __pattern__ = r'https?://(?:www\.)?4shared(\-china)?\.com/(account/)?(download|get|file|document|photo|video|audio|mp3|office|rar|zip|archive|music)/.+?/.*' - __description = """4Shared.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """4Shared.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/FreakshareCom.py b/pyload/plugin/hoster/FreakshareCom.py index 498a77a22..f11607591 100644 --- a/pyload/plugin/hoster/FreakshareCom.py +++ b/pyload/plugin/hoster/FreakshareCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.captcha import ReCaptcha class FreakshareCom(Hoster): - __name = "FreakshareCom" - __type = "hoster" - __version = "0.39" + __name__ = "FreakshareCom" + __type__ = "hoster" + __version__ = "0.39" - __pattern = r'http://(?:www\.)?freakshare\.(net|com)/files/\S*?/' + __pattern__ = r'http://(?:www\.)?freakshare\.(net|com)/files/\S*?/' - __description = """Freakshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("sitacuisses", "sitacuisses@yahoo.de"), + __description__ = """Freakshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("sitacuisses", "sitacuisses@yahoo.de"), ("spoob", "spoob@pyload.org"), ("mkaay", "mkaay@mkaay.de"), ("Toilal", "toilal.dev@gmail.com")] diff --git a/pyload/plugin/hoster/FreeWayMe.py b/pyload/plugin/hoster/FreeWayMe.py index 0d180e0fe..f65793dab 100644 --- a/pyload/plugin/hoster/FreeWayMe.py +++ b/pyload/plugin/hoster/FreeWayMe.py @@ -4,15 +4,15 @@ from pyload.plugin.Hoster import Hoster class FreeWayMe(Hoster): - __name = "FreeWayMe" - __type = "hoster" - __version = "0.11" + __name__ = "FreeWayMe" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'https://(?:www\.)?free-way\.me/.*' + __pattern__ = r'https://(?:www\.)?free-way\.me/.*' - __description = """FreeWayMe hoster plugin""" - __license = "GPLv3" - __authors = [("Nicolas Giese", "james@free-way.me")] + __description__ = """FreeWayMe hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Nicolas Giese", "james@free-way.me")] def setup(self): diff --git a/pyload/plugin/hoster/FreevideoCz.py b/pyload/plugin/hoster/FreevideoCz.py index 5994cfca9..86c30e64c 100644 --- a/pyload/plugin/hoster/FreevideoCz.py +++ b/pyload/plugin/hoster/FreevideoCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class FreevideoCz(DeadHoster): - __name = "FreevideoCz" - __type = "hoster" - __version = "0.30" + __name__ = "FreevideoCz" + __type__ = "hoster" + __version__ = "0.30" - __pattern = r'http://(?:www\.)?freevideo\.cz/vase-videa/.+' + __pattern__ = r'http://(?:www\.)?freevideo\.cz/vase-videa/.+' - __description = """Freevideo.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Freevideo.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(FreevideoCz)
\ No newline at end of file diff --git a/pyload/plugin/hoster/FshareVn.py b/pyload/plugin/hoster/FshareVn.py index 88d8ebb6e..6647a58b7 100644 --- a/pyload/plugin/hoster/FshareVn.py +++ b/pyload/plugin/hoster/FshareVn.py @@ -22,15 +22,15 @@ def doubleDecode(m): class FshareVn(SimpleHoster): - __name = "FshareVn" - __type = "hoster" - __version = "0.17" + __name__ = "FshareVn" + __type__ = "hoster" + __version__ = "0.17" - __pattern = r'http://(?:www\.)?fshare\.vn/file/.*' + __pattern__ = r'http://(?:www\.)?fshare\.vn/file/.*' - __description = """FshareVn hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """FshareVn hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] INFO_PATTERN = r'<p>(?P<N>[^<]+)<\\/p>[\\trn\s]*<p>(?P<S>[\d.,]+)\s*(?P<U>[\w^_]+)<\\/p>' diff --git a/pyload/plugin/hoster/Ftp.py b/pyload/plugin/hoster/Ftp.py index e11418a1b..4183f9b3c 100644 --- a/pyload/plugin/hoster/Ftp.py +++ b/pyload/plugin/hoster/Ftp.py @@ -10,15 +10,15 @@ from pyload.plugin.Hoster import Hoster class Ftp(Hoster): - __name = "Ftp" - __type = "hoster" - __version = "0.43" + __name__ = "Ftp" + __type__ = "hoster" + __version__ = "0.43" - __pattern = r'(?:ftps?|sftp)://([\w.-]+(:[\w.-]+)?@)?[\w.-]+(:\d+)?/.+' + __pattern__ = r'(?:ftps?|sftp)://([\w.-]+(:[\w.-]+)?@)?[\w.-]+(:\d+)?/.+' - __description = """Download from ftp directory""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.com"), + __description__ = """Download from ftp directory""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.com"), ("mkaay", "mkaay@mkaay.de"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/GamefrontCom.py b/pyload/plugin/hoster/GamefrontCom.py index 81568e376..89e188010 100644 --- a/pyload/plugin/hoster/GamefrontCom.py +++ b/pyload/plugin/hoster/GamefrontCom.py @@ -8,15 +8,15 @@ from pyload.utils import parseFileSize class GamefrontCom(Hoster): - __name = "GamefrontCom" - __type = "hoster" - __version = "0.04" + __name__ = "GamefrontCom" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?gamefront\.com/files/\w+' + __pattern__ = r'http://(?:www\.)?gamefront\.com/files/\w+' - __description = """Gamefront.com hoster plugin""" - __license = "GPLv3" - __authors = [("fwannmacher", "felipe@warhammerproject.com")] + __description__ = """Gamefront.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("fwannmacher", "felipe@warhammerproject.com")] PATTERN_FILENAME = r'<title>(.*?) | Game Front' diff --git a/pyload/plugin/hoster/GigapetaCom.py b/pyload/plugin/hoster/GigapetaCom.py index ded18c235..405fe1937 100644 --- a/pyload/plugin/hoster/GigapetaCom.py +++ b/pyload/plugin/hoster/GigapetaCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class GigapetaCom(SimpleHoster): - __name = "GigapetaCom" - __type = "hoster" - __version = "0.02" + __name__ = "GigapetaCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?gigapeta\.com/dl/\w+' + __pattern__ = r'http://(?:www\.)?gigapeta\.com/dl/\w+' - __description = """GigaPeta.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """GigaPeta.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<img src=".*" alt="file" />-->\s*(?P<N>.*?)\s*</td>' diff --git a/pyload/plugin/hoster/GooIm.py b/pyload/plugin/hoster/GooIm.py index af7143b7c..bd21178d2 100644 --- a/pyload/plugin/hoster/GooIm.py +++ b/pyload/plugin/hoster/GooIm.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class GooIm(SimpleHoster): - __name = "GooIm" - __type = "hoster" - __version = "0.03" + __name__ = "GooIm" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'https?://(?:www\.)?goo\.im/.+' + __pattern__ = r'https?://(?:www\.)?goo\.im/.+' - __description = """Goo.im hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] + __description__ = """Goo.im hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] NAME_PATTERN = r'You will be redirected to .*(?P<N>[^/ ]+) in' diff --git a/pyload/plugin/hoster/HellshareCz.py b/pyload/plugin/hoster/HellshareCz.py index 9c3459a44..b4f4f1f1c 100644 --- a/pyload/plugin/hoster/HellshareCz.py +++ b/pyload/plugin/hoster/HellshareCz.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class HellshareCz(SimpleHoster): - __name = "HellshareCz" - __type = "hoster" - __version = "0.83" + __name__ = "HellshareCz" + __type__ = "hoster" + __version__ = "0.83" - __pattern = r'(http://(?:www\.)?hellshare\.(?:cz|com|sk|hu|pl)/[^?]*/\d+).*' + __pattern__ = r'(http://(?:www\.)?hellshare\.(?:cz|com|sk|hu|pl)/[^?]*/\d+).*' - __description = """Hellshare.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Hellshare.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<h1 id="filename"[^>]*>(?P<N>[^<]+)</h1>' @@ -31,7 +31,7 @@ class HellshareCz(SimpleHoster): def process(self, pyfile): if not self.account: self.fail(_("User not logged in")) - pyfile.url = re.match(self.__pattern, pyfile.url).group(1) + pyfile.url = re.match(self.__pattern__, pyfile.url).group(1) self.html = self.load(pyfile.url, decode=True) self.getFileInfo() if not self.checkTrafficLeft(): diff --git a/pyload/plugin/hoster/HellspyCz.py b/pyload/plugin/hoster/HellspyCz.py index 2e0c63d1a..984af3c4e 100644 --- a/pyload/plugin/hoster/HellspyCz.py +++ b/pyload/plugin/hoster/HellspyCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class HellspyCz(DeadHoster): - __name = "HellspyCz" - __type = "hoster" - __version = "0.28" + __name__ = "HellspyCz" + __type__ = "hoster" + __version__ = "0.28" - __pattern = r'http://(?:www\.)?(?:hellspy\.(?:cz|com|sk|hu|pl)|sciagaj\.pl)(/\S+/\d+)/?.*' + __pattern__ = r'http://(?:www\.)?(?:hellspy\.(?:cz|com|sk|hu|pl)|sciagaj\.pl)(/\S+/\d+)/?.*' - __description = """HellSpy.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """HellSpy.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(HellspyCz) diff --git a/pyload/plugin/hoster/HotfileCom.py b/pyload/plugin/hoster/HotfileCom.py index 92b42bab6..b64bb5fd7 100644 --- a/pyload/plugin/hoster/HotfileCom.py +++ b/pyload/plugin/hoster/HotfileCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class HotfileCom(DeadHoster): - __name = "HotfileCom" - __type = "hoster" - __version = "0.37" + __name__ = "HotfileCom" + __type__ = "hoster" + __version__ = "0.37" - __pattern = r'https?://(?:www\.)?hotfile\.com/dl/\d+/\w+' + __pattern__ = r'https?://(?:www\.)?hotfile\.com/dl/\d+/\w+' - __description = """Hotfile.com hoster plugin""" - __license = "GPLv3" - __authors = [("sitacuisses", "sitacuisses@yhoo.de"), + __description__ = """Hotfile.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("sitacuisses", "sitacuisses@yhoo.de"), ("spoob", "spoob@pyload.org"), ("mkaay", "mkaay@mkaay.de"), ("JoKoT3", "jokot3@gmail.com")] diff --git a/pyload/plugin/hoster/HugefilesNet.py b/pyload/plugin/hoster/HugefilesNet.py index c32f2e190..7b27f4ab6 100644 --- a/pyload/plugin/hoster/HugefilesNet.py +++ b/pyload/plugin/hoster/HugefilesNet.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class HugefilesNet(XFSHoster): - __name = "HugefilesNet" - __type = "hoster" - __version = "0.05" + __name__ = "HugefilesNet" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?hugefiles\.net/\w{12}' + __pattern__ = r'http://(?:www\.)?hugefiles\.net/\w{12}' - __description = """Hugefiles.net hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Hugefiles.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] HOSTER_DOMAIN = "hugefiles.net" diff --git a/pyload/plugin/hoster/HundredEightyUploadCom.py b/pyload/plugin/hoster/HundredEightyUploadCom.py index b5e8c2d4c..4614dc54f 100644 --- a/pyload/plugin/hoster/HundredEightyUploadCom.py +++ b/pyload/plugin/hoster/HundredEightyUploadCom.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class HundredEightyUploadCom(XFSHoster): - __name = "HundredEightyUploadCom" - __type = "hoster" - __version = "0.04" + __name__ = "HundredEightyUploadCom" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?180upload\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?180upload\.com/\w{12}' - __description = """180upload.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """180upload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] HOSTER_DOMAIN = "180upload.com" diff --git a/pyload/plugin/hoster/IFileWs.py b/pyload/plugin/hoster/IFileWs.py index 31a5f6d62..59d9c7f40 100644 --- a/pyload/plugin/hoster/IFileWs.py +++ b/pyload/plugin/hoster/IFileWs.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class IFileWs(DeadHoster): - __name = "IFileWs" - __type = "hoster" - __version = "0.02" + __name__ = "IFileWs" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?ifile\.ws/\w{12}' + __pattern__ = r'http://(?:www\.)?ifile\.ws/\w{12}' - __description = """Ifile.ws hoster plugin""" - __license = "GPLv3" - __authors = [("z00nx", "z00nx0@gmail.com")] + __description__ = """Ifile.ws hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("z00nx", "z00nx0@gmail.com")] getInfo = create_getInfo(IFileWs) diff --git a/pyload/plugin/hoster/IcyFilesCom.py b/pyload/plugin/hoster/IcyFilesCom.py index da45be10f..17aa1352c 100644 --- a/pyload/plugin/hoster/IcyFilesCom.py +++ b/pyload/plugin/hoster/IcyFilesCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class IcyFilesCom(DeadHoster): - __name = "IcyFilesCom" - __type = "hoster" - __version = "0.06" + __name__ = "IcyFilesCom" + __type__ = "hoster" + __version__ = "0.06" - __pattern = r'http://(?:www\.)?icyfiles\.com/(.*)' + __pattern__ = r'http://(?:www\.)?icyfiles\.com/(.*)' - __description = """IcyFiles.com hoster plugin""" - __license = "GPLv3" - __authors = [("godofdream", "soilfiction@gmail.com")] + __description__ = """IcyFiles.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("godofdream", "soilfiction@gmail.com")] getInfo = create_getInfo(IcyFilesCom) diff --git a/pyload/plugin/hoster/IfileIt.py b/pyload/plugin/hoster/IfileIt.py index 1995b210f..8ccb35308 100644 --- a/pyload/plugin/hoster/IfileIt.py +++ b/pyload/plugin/hoster/IfileIt.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class IfileIt(SimpleHoster): - __name = "IfileIt" - __type = "hoster" - __version = "0.28" + __name__ = "IfileIt" + __type__ = "hoster" + __version__ = "0.28" - __pattern = r'^unmatchable$' + __pattern__ = r'^unmatchable$' - __description = """Ifile.it""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Ifile.it""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] LINK_PATTERN = r'</span> If it doesn\'t, <a target="_blank" href="([^"]+)">' @@ -27,7 +27,7 @@ class IfileIt(SimpleHoster): def handleFree(self): - ukey = re.match(self.__pattern, self.pyfile.url).group(1) + ukey = re.match(self.__pattern__, self.pyfile.url).group(1) json_url = 'http://ifile.it/new_download-request.json' post_data = {"ukey": ukey, "ab": "0"} res = json_loads(self.load(json_url, post=post_data)) diff --git a/pyload/plugin/hoster/IfolderRu.py b/pyload/plugin/hoster/IfolderRu.py index 984d2f3ad..f31096a1c 100644 --- a/pyload/plugin/hoster/IfolderRu.py +++ b/pyload/plugin/hoster/IfolderRu.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class IfolderRu(SimpleHoster): - __name = "IfolderRu" - __type = "hoster" - __version = "0.38" + __name__ = "IfolderRu" + __type__ = "hoster" + __version__ = "0.38" - __pattern = r'http://(?:www\.)?(?:ifolder\.ru|rusfolder\.(?:com|net|ru))/(?:files/)?(?P<ID>\d+).*' + __pattern__ = r'http://(?:www\.)?(?:ifolder\.ru|rusfolder\.(?:com|net|ru))/(?:files/)?(?P<ID>\d+).*' - __description = """Ifolder.ru hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Ifolder.ru hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] SIZE_REPLACEMENTS = [(u'Ðб', 'KB'), (u'Ðб', 'MB'), (u'Ðб', 'GB')] @@ -35,7 +35,7 @@ class IfolderRu(SimpleHoster): def process(self, pyfile): - file_id = re.match(self.__pattern, pyfile.url).group('ID') + file_id = re.match(self.__pattern__, pyfile.url).group('ID') self.html = self.load("http://rusfolder.com/%s" % file_id, cookies=True, decode=True) self.getFileInfo() diff --git a/pyload/plugin/hoster/JumbofilesCom.py b/pyload/plugin/hoster/JumbofilesCom.py index b7c82082a..cae54ba97 100644 --- a/pyload/plugin/hoster/JumbofilesCom.py +++ b/pyload/plugin/hoster/JumbofilesCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class JumbofilesCom(SimpleHoster): - __name = "JumbofilesCom" - __type = "hoster" - __version = "0.02" + __name__ = "JumbofilesCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?jumbofiles\.com/(\w{12}).*' + __pattern__ = r'http://(?:www\.)?jumbofiles\.com/(\w{12}).*' - __description = """JumboFiles.com hoster plugin""" - __license = "GPLv3" - __authors = [("godofdream", "soilfiction@gmail.com")] + __description__ = """JumboFiles.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("godofdream", "soilfiction@gmail.com")] INFO_PATTERN = r'<TR><TD>(?P<N>[^<]+?)\s*<small>\((?P<S>[\d.,]+)\s*(?P<U>[\w^_]+)' @@ -28,7 +28,7 @@ class JumbofilesCom(SimpleHoster): def handleFree(self): - ukey = re.match(self.__pattern, self.pyfile.url).group(1) + ukey = re.match(self.__pattern__, self.pyfile.url).group(1) post_data = {"id": ukey, "op": "download3", "rand": ""} html = self.load(self.pyfile.url, post=post_data, decode=True) url = re.search(self.LINK_PATTERN, html).group(1) diff --git a/pyload/plugin/hoster/JunocloudMe.py b/pyload/plugin/hoster/JunocloudMe.py index b455c8049..80c1568ce 100644 --- a/pyload/plugin/hoster/JunocloudMe.py +++ b/pyload/plugin/hoster/JunocloudMe.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class JunocloudMe(XFSHoster): - __name = "JunocloudMe" - __type = "hoster" - __version = "0.05" + __name__ = "JunocloudMe" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:\w+\.)?junocloud\.me/\w{12}' + __pattern__ = r'http://(?:\w+\.)?junocloud\.me/\w{12}' - __description = """Junocloud.me hoster plugin""" - __license = "GPLv3" - __authors = [("guidobelix", "guidobelix@hotmail.it")] + __description__ = """Junocloud.me hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("guidobelix", "guidobelix@hotmail.it")] HOSTER_DOMAIN = "junocloud.me" diff --git a/pyload/plugin/hoster/Keep2shareCc.py b/pyload/plugin/hoster/Keep2shareCc.py index a57965ca2..8f8e8cb67 100644 --- a/pyload/plugin/hoster/Keep2shareCc.py +++ b/pyload/plugin/hoster/Keep2shareCc.py @@ -9,19 +9,19 @@ from pyload.plugin.internal.SimpleHoster import _isDirectLink, SimpleHoster, cre class Keep2shareCc(SimpleHoster): - __name = "Keep2shareCc" - __type = "hoster" - __version = "0.17" + __name__ = "Keep2shareCc" + __type__ = "hoster" + __version__ = "0.17" - __pattern = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>\w+)' - __description = """Keep2share.cc hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it"), + __description__ = """Keep2share.cc hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] - URL_REPLACEMENTS = [(__pattern + ".*", "http://k2s.cc/file/\g<ID>")] + URL_REPLACEMENTS = [(__pattern__ + ".*", "http://k2s.cc/file/\g<ID>")] NAME_PATTERN = r'File: <span>(?P<N>.+)</span>' SIZE_PATTERN = r'Size: (?P<S>[^<]+)</div>' diff --git a/pyload/plugin/hoster/KickloadCom.py b/pyload/plugin/hoster/KickloadCom.py index 781abf654..1f0c41f3d 100644 --- a/pyload/plugin/hoster/KickloadCom.py +++ b/pyload/plugin/hoster/KickloadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class KickloadCom(DeadHoster): - __name = "KickloadCom" - __type = "hoster" - __version = "0.21" + __name__ = "KickloadCom" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'http://(?:www\.)?kickload\.com/get/.+' + __pattern__ = r'http://(?:www\.)?kickload\.com/get/.+' - __description = """Kickload.com hoster plugin""" - __license = "GPLv3" - __authors = [("mkaay", "mkaay@mkaay.de")] + __description__ = """Kickload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("mkaay", "mkaay@mkaay.de")] getInfo = create_getInfo(KickloadCom) diff --git a/pyload/plugin/hoster/KingfilesNet.py b/pyload/plugin/hoster/KingfilesNet.py index d863dbbf0..050ee283f 100644 --- a/pyload/plugin/hoster/KingfilesNet.py +++ b/pyload/plugin/hoster/KingfilesNet.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class KingfilesNet(SimpleHoster): - __name = "KingfilesNet" - __type = "hoster" - __version = "0.05" + __name__ = "KingfilesNet" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?kingfiles\.net/(?P<ID>\w{12})' + __pattern__ = r'http://(?:www\.)?kingfiles\.net/(?P<ID>\w{12})' - __description = """Kingfiles.net hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de"), + __description__ = """Kingfiles.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/LemUploadsCom.py b/pyload/plugin/hoster/LemUploadsCom.py index 8663504dc..822670348 100644 --- a/pyload/plugin/hoster/LemUploadsCom.py +++ b/pyload/plugin/hoster/LemUploadsCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class LemUploadsCom(DeadHoster): - __name = "LemUploadsCom" - __type = "hoster" - __version = "0.02" + __name__ = "LemUploadsCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:www\.)?lemuploads\.com/\w{12}' + __pattern__ = r'https?://(?:www\.)?lemuploads\.com/\w{12}' - __description = """LemUploads.com hoster plugin""" - __license = "GPLv3" - __authors = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] + __description__ = """LemUploads.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] getInfo = create_getInfo(LemUploadsCom) diff --git a/pyload/plugin/hoster/LetitbitNet.py b/pyload/plugin/hoster/LetitbitNet.py index 164e61c01..f6ec6fb34 100644 --- a/pyload/plugin/hoster/LetitbitNet.py +++ b/pyload/plugin/hoster/LetitbitNet.py @@ -35,15 +35,15 @@ def getInfo(urls): class LetitbitNet(SimpleHoster): - __name = "LetitbitNet" - __type = "hoster" - __version = "0.26" + __name__ = "LetitbitNet" + __type__ = "hoster" + __version__ = "0.26" - __pattern = r'https?://(?:www\.)?(letitbit|shareflare)\.net/download/.*' + __pattern__ = r'https?://(?:www\.)?(letitbit|shareflare)\.net/download/.*' - __description = """Letitbit.net hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Letitbit.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("z00nx", "z00nx0@gmail.com")] diff --git a/pyload/plugin/hoster/LinksnappyCom.py b/pyload/plugin/hoster/LinksnappyCom.py index b94b8c965..57acac758 100644 --- a/pyload/plugin/hoster/LinksnappyCom.py +++ b/pyload/plugin/hoster/LinksnappyCom.py @@ -9,15 +9,15 @@ from pyload.plugin.Hoster import Hoster class LinksnappyCom(Hoster): - __name = "LinksnappyCom" - __type = "hoster" - __version = "0.02" + __name__ = "LinksnappyCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:[^/]*\.)?linksnappy\.com' + __pattern__ = r'https?://(?:[^/]*\.)?linksnappy\.com' - __description = """Linksnappy.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Linksnappy.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] SINGLE_CHUNK_HOSTERS = ('easybytez.com') @@ -29,7 +29,7 @@ class LinksnappyCom(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Linksnappy.com") diff --git a/pyload/plugin/hoster/LoadTo.py b/pyload/plugin/hoster/LoadTo.py index 14341ac6a..052d79214 100644 --- a/pyload/plugin/hoster/LoadTo.py +++ b/pyload/plugin/hoster/LoadTo.py @@ -11,15 +11,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class LoadTo(SimpleHoster): - __name = "LoadTo" - __type = "hoster" - __version = "0.18" + __name__ = "LoadTo" + __type__ = "hoster" + __version__ = "0.18" - __pattern = r'http://(?:www\.)?load\.to/\w+' + __pattern__ = r'http://(?:www\.)?load\.to/\w+' - __description = """Load.to hoster plugin""" - __license = "GPLv3" - __authors = [("halfman", "Pulpan3@gmail.com"), + __description__ = """Load.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("halfman", "Pulpan3@gmail.com"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/LomafileCom.py b/pyload/plugin/hoster/LomafileCom.py index 3c0f5ea5b..18f9a7ad8 100644 --- a/pyload/plugin/hoster/LomafileCom.py +++ b/pyload/plugin/hoster/LomafileCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class LomafileCom(XFSHoster): - __name = "LomafileCom" - __type = "hoster" - __version = "0.51" + __name__ = "LomafileCom" + __type__ = "hoster" + __version__ = "0.51" - __pattern = r'http://lomafile\.com/\w{12}' + __pattern__ = r'http://lomafile\.com/\w{12}' - __description = """Lomafile.com hoster plugin""" - __license = "GPLv3" - __authors = [("nath_schwarz", "nathan.notwhite@gmail.com"), + __description__ = """Lomafile.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("nath_schwarz", "nathan.notwhite@gmail.com"), ("guidobelix", "guidobelix@hotmail.it")] diff --git a/pyload/plugin/hoster/LuckyShareNet.py b/pyload/plugin/hoster/LuckyShareNet.py index 8f0843529..5025bd7d4 100644 --- a/pyload/plugin/hoster/LuckyShareNet.py +++ b/pyload/plugin/hoster/LuckyShareNet.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class LuckyShareNet(SimpleHoster): - __name = "LuckyShareNet" - __type = "hoster" - __version = "0.04" + __name__ = "LuckyShareNet" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'https?://(?:www\.)?luckyshare\.net/(?P<ID>\d{10,})' + __pattern__ = r'https?://(?:www\.)?luckyshare\.net/(?P<ID>\d{10,})' - __description = """LuckyShare.net hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """LuckyShare.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] INFO_PATTERN = r'<h1 class=\'file_name\'>(?P<N>\S+)</h1>\s*<span class=\'file_size\'>Filesize: (?P<S>[\d.,]+)(?P<U>[\w^_]+)</span>' diff --git a/pyload/plugin/hoster/MediafireCom.py b/pyload/plugin/hoster/MediafireCom.py index 009a42c62..e14b16d8e 100644 --- a/pyload/plugin/hoster/MediafireCom.py +++ b/pyload/plugin/hoster/MediafireCom.py @@ -47,15 +47,15 @@ def getInfo(urls): class MediafireCom(SimpleHoster): - __name = "MediafireCom" - __type = "hoster" - __version = "0.80" + __name__ = "MediafireCom" + __type__ = "hoster" + __version__ = "0.80" - __pattern = r'http://(?:www\.)?mediafire\.com/(file/|(view/?|download\.php)?\?)(\w{11}|\w{15})($|/)' + __pattern__ = r'http://(?:www\.)?mediafire\.com/(file/|(view/?|download\.php)?\?)(\w{11}|\w{15})($|/)' - __description = """Mediafire.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Mediafire.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/MegaCoNz.py b/pyload/plugin/hoster/MegaCoNz.py index b8f02278b..5fe1315be 100644 --- a/pyload/plugin/hoster/MegaCoNz.py +++ b/pyload/plugin/hoster/MegaCoNz.py @@ -44,15 +44,15 @@ from pyload.plugin.Hoster import Hoster class MegaCoNz(Hoster): - __name = "MegaCoNz" - __type = "hoster" - __version = "0.16" + __name__ = "MegaCoNz" + __type__ = "hoster" + __version__ = "0.16" - __pattern = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' + __pattern__ = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' - __description = """Mega.co.nz hoster plugin""" - __license = "GPLv3" - __authors = [("RaNaN", "ranan@pyload.org")] + __description__ = """Mega.co.nz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("RaNaN", "ranan@pyload.org")] API_URL = "https://g.api.mega.co.nz/cs" FILE_SUFFIX = ".crypted" @@ -133,7 +133,7 @@ class MegaCoNz(Hoster): key = None # match is guaranteed because plugin was chosen to handle url - node = re.match(self.__pattern, pyfile.url).group(2) + node = re.match(self.__pattern__, pyfile.url).group(2) if "!" in node: node, key = node.split("!") diff --git a/pyload/plugin/hoster/MegaDebridEu.py b/pyload/plugin/hoster/MegaDebridEu.py index d17a8eeeb..d473cbbf1 100644 --- a/pyload/plugin/hoster/MegaDebridEu.py +++ b/pyload/plugin/hoster/MegaDebridEu.py @@ -9,15 +9,15 @@ from pyload.plugin.Hoster import Hoster class MegaDebridEu(Hoster): - __name = "MegaDebridEu" - __type = "hoster" - __version = "0.40" + __name__ = "MegaDebridEu" + __type__ = "hoster" + __version__ = "0.40" - __pattern = r'^https?://(?:w{3}\d+\.mega-debrid\.eu|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/download/file/[^/]+/.+$' + __pattern__ = r'^https?://(?:w{3}\d+\.mega-debrid\.eu|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/download/file/[^/]+/.+$' - __description = """mega-debrid.eu hoster plugin""" - __license = "GPLv3" - __authors = [("D.Ducatel", "dducatel@je-geek.fr")] + __description__ = """mega-debrid.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("D.Ducatel", "dducatel@je-geek.fr")] API_URL = "https://www.mega-debrid.eu/api.php" @@ -31,7 +31,7 @@ class MegaDebridEu(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.exitOnFail("Please enter your %s account or deactivate this plugin" % "Mega-debrid.eu") diff --git a/pyload/plugin/hoster/MegaFilesSe.py b/pyload/plugin/hoster/MegaFilesSe.py index 6b6e5c0b1..4120e17d6 100644 --- a/pyload/plugin/hoster/MegaFilesSe.py +++ b/pyload/plugin/hoster/MegaFilesSe.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class MegaFilesSe(DeadHoster): - __name = "MegaFilesSe" - __type = "hoster" - __version = "0.02" + __name__ = "MegaFilesSe" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?megafiles\.se/\w{12}' + __pattern__ = r'http://(?:www\.)?megafiles\.se/\w{12}' - __description = """MegaFiles.se hoster plugin""" - __license = "GPLv3" - __authors = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] + __description__ = """MegaFiles.se hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] getInfo = create_getInfo(MegaFilesSe) diff --git a/pyload/plugin/hoster/MegaRapidCz.py b/pyload/plugin/hoster/MegaRapidCz.py index 380032724..93a70a54e 100644 --- a/pyload/plugin/hoster/MegaRapidCz.py +++ b/pyload/plugin/hoster/MegaRapidCz.py @@ -20,15 +20,15 @@ def getInfo(urls): class MegaRapidCz(SimpleHoster): - __name = "MegaRapidCz" - __type = "hoster" - __version = "0.54" + __name__ = "MegaRapidCz" + __type__ = "hoster" + __version__ = "0.54" - __pattern = r'http://(?:www\.)?(share|mega)rapid\.cz/soubor/\d+/.+' + __pattern__ = r'http://(?:www\.)?(share|mega)rapid\.cz/soubor/\d+/.+' - __description = """MegaRapid.cz hoster plugin""" - __license = "GPLv3" - __authors = [("MikyWoW", "mikywow@seznam.cz"), + __description__ = """MegaRapid.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("MikyWoW", "mikywow@seznam.cz"), ("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/MegacrypterCom.py b/pyload/plugin/hoster/MegacrypterCom.py index 5bf0d0864..ea1aafd70 100644 --- a/pyload/plugin/hoster/MegacrypterCom.py +++ b/pyload/plugin/hoster/MegacrypterCom.py @@ -8,15 +8,15 @@ from pyload.plugin.hoster.MegaCoNz import MegaCoNz class MegacrypterCom(MegaCoNz): - __name = "MegacrypterCom" - __type = "hoster" - __version = "0.21" + __name__ = "MegacrypterCom" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'(https?://\w{0,10}\.?megacrypter\.com/[\w!-]+)' + __pattern__ = r'(https?://\w{0,10}\.?megacrypter\.com/[\w!-]+)' - __description = """Megacrypter.com decrypter plugin""" - __license = "GPLv3" - __authors = [("GonzaloSR", "gonzalo@gonzalosr.com")] + __description__ = """Megacrypter.com decrypter plugin""" + __license__ = "GPLv3" + __authors__ = [("GonzaloSR", "gonzalo@gonzalosr.com")] API_URL = "http://megacrypter.com/api" @@ -33,7 +33,7 @@ class MegacrypterCom(MegaCoNz): def process(self, pyfile): # match is guaranteed because plugin was chosen to handle url - node = re.match(self.__pattern, pyfile.url).group(1) + node = re.match(self.__pattern__, pyfile.url).group(1) # get Mega.co.nz link info info = self.callApi(link=node, m="info") diff --git a/pyload/plugin/hoster/MegareleaseOrg.py b/pyload/plugin/hoster/MegareleaseOrg.py index de388ef9d..6eacbd6e0 100644 --- a/pyload/plugin/hoster/MegareleaseOrg.py +++ b/pyload/plugin/hoster/MegareleaseOrg.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class MegareleaseOrg(DeadHoster): - __name = "MegareleaseOrg" - __type = "hoster" - __version = "0.02" + __name__ = "MegareleaseOrg" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:www\.)?megarelease\.org/\w{12}' + __pattern__ = r'https?://(?:www\.)?megarelease\.org/\w{12}' - __description = """Megarelease.org hoster plugin""" - __license = "GPLv3" - __authors = [("derek3x", "derek3x@vmail.me"), + __description__ = """Megarelease.org hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("derek3x", "derek3x@vmail.me"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/MegasharesCom.py b/pyload/plugin/hoster/MegasharesCom.py index 235a2e4d4..ffcab9415 100644 --- a/pyload/plugin/hoster/MegasharesCom.py +++ b/pyload/plugin/hoster/MegasharesCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class MegasharesCom(SimpleHoster): - __name = "MegasharesCom" - __type = "hoster" - __version = "0.27" + __name__ = "MegasharesCom" + __type__ = "hoster" + __version__ = "0.27" - __pattern = r'http://(?:www\.)?(d\d{2}\.)?megashares\.com/((index\.php)?\?d\d{2}=|dl/)\w+' + __pattern__ = r'http://(?:www\.)?(d\d{2}\.)?megashares\.com/((index\.php)?\?d\d{2}=|dl/)\w+' - __description = """Megashares.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Megashares.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/MegauploadCom.py b/pyload/plugin/hoster/MegauploadCom.py index 468a7389d..7896dabfb 100644 --- a/pyload/plugin/hoster/MegauploadCom.py +++ b/pyload/plugin/hoster/MegauploadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class MegauploadCom(DeadHoster): - __name = "MegauploadCom" - __type = "hoster" - __version = "0.31" + __name__ = "MegauploadCom" + __type__ = "hoster" + __version__ = "0.31" - __pattern = r'http://(?:www\.)?megaupload\.com/\?.*&?(d|v)=\w+' + __pattern__ = r'http://(?:www\.)?megaupload\.com/\?.*&?(d|v)=\w+' - __description = """Megaupload.com hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org")] + __description__ = """Megaupload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org")] getInfo = create_getInfo(MegauploadCom) diff --git a/pyload/plugin/hoster/MegavideoCom.py b/pyload/plugin/hoster/MegavideoCom.py index 2d1a17daf..02054fecb 100644 --- a/pyload/plugin/hoster/MegavideoCom.py +++ b/pyload/plugin/hoster/MegavideoCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class MegavideoCom(DeadHoster): - __name = "MegavideoCom" - __type = "hoster" - __version = "0.21" + __name__ = "MegavideoCom" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'http://(?:www\.)?megavideo\.com/\?.*&?(d|v)=\w+' + __pattern__ = r'http://(?:www\.)?megavideo\.com/\?.*&?(d|v)=\w+' - __description = """Megavideo.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Megavideo.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("mkaay", "mkaay@mkaay.de")] diff --git a/pyload/plugin/hoster/MovReelCom.py b/pyload/plugin/hoster/MovReelCom.py index 90c3da2c8..c55269a89 100644 --- a/pyload/plugin/hoster/MovReelCom.py +++ b/pyload/plugin/hoster/MovReelCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class MovReelCom(XFSHoster): - __name = "MovReelCom" - __type = "hoster" - __version = "1.24" + __name__ = "MovReelCom" + __type__ = "hoster" + __version__ = "1.24" - __pattern = r'http://(?:www\.)?movreel\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?movreel\.com/\w{12}' - __description = """MovReel.com hoster plugin""" - __license = "GPLv3" - __authors = [("JorisV83", "jorisv83-pyload@yahoo.com")] + __description__ = """MovReel.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("JorisV83", "jorisv83-pyload@yahoo.com")] HOSTER_DOMAIN = "movreel.com" diff --git a/pyload/plugin/hoster/MultishareCz.py b/pyload/plugin/hoster/MultishareCz.py index a66043fc0..817f457bf 100644 --- a/pyload/plugin/hoster/MultishareCz.py +++ b/pyload/plugin/hoster/MultishareCz.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class MultishareCz(SimpleHoster): - __name = "MultishareCz" - __type = "hoster" - __version = "0.35" + __name__ = "MultishareCz" + __type__ = "hoster" + __version__ = "0.35" - __pattern = r'http://(?:www\.)?multishare\.cz/stahnout/(?P<ID>\d+).*' + __pattern__ = r'http://(?:www\.)?multishare\.cz/stahnout/(?P<ID>\d+).*' - __description = """MultiShare.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """MultiShare.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] SIZE_REPLACEMENTS = [(' ', '')] @@ -28,7 +28,7 @@ class MultishareCz(SimpleHoster): def process(self, pyfile): - msurl = re.match(self.__pattern, pyfile.url) + msurl = re.match(self.__pattern__, pyfile.url) if msurl: self.fileID = msurl.group('ID') self.html = self.load(pyfile.url, decode=True) diff --git a/pyload/plugin/hoster/MyfastfileCom.py b/pyload/plugin/hoster/MyfastfileCom.py index 528a4c2c8..b67b221d2 100644 --- a/pyload/plugin/hoster/MyfastfileCom.py +++ b/pyload/plugin/hoster/MyfastfileCom.py @@ -7,15 +7,15 @@ from pyload.utils import json_loads class MyfastfileCom(Hoster): - __name = "MyfastfileCom" - __type = "hoster" - __version = "0.04" + __name__ = "MyfastfileCom" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/' + __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/' - __description = """Myfastfile.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Myfastfile.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] @@ -25,7 +25,7 @@ class MyfastfileCom(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Myfastfile.com") diff --git a/pyload/plugin/hoster/MyvideoDe.py b/pyload/plugin/hoster/MyvideoDe.py index 08652cdc9..4b5fa99ca 100644 --- a/pyload/plugin/hoster/MyvideoDe.py +++ b/pyload/plugin/hoster/MyvideoDe.py @@ -7,15 +7,15 @@ from pyload.utils import html_unescape class MyvideoDe(Hoster): - __name = "MyvideoDe" - __type = "hoster" - __version = "0.90" + __name__ = "MyvideoDe" + __type__ = "hoster" + __version__ = "0.90" - __pattern = r'http://(?:www\.)?myvideo\.de/watch/' + __pattern__ = r'http://(?:www\.)?myvideo\.de/watch/' - __description = """Myvideo.de hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org")] + __description__ = """Myvideo.de hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/NahrajCz.py b/pyload/plugin/hoster/NahrajCz.py index 6e187e268..5c5c71ae6 100644 --- a/pyload/plugin/hoster/NahrajCz.py +++ b/pyload/plugin/hoster/NahrajCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class NahrajCz(DeadHoster): - __name = "NahrajCz" - __type = "hoster" - __version = "0.21" + __name__ = "NahrajCz" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'http://(?:www\.)?nahraj\.cz/content/download/.+' + __pattern__ = r'http://(?:www\.)?nahraj\.cz/content/download/.+' - __description = """Nahraj.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Nahraj.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(NahrajCz) diff --git a/pyload/plugin/hoster/NarodRu.py b/pyload/plugin/hoster/NarodRu.py index 9d5b1f4e6..5dfb4e245 100644 --- a/pyload/plugin/hoster/NarodRu.py +++ b/pyload/plugin/hoster/NarodRu.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class NarodRu(SimpleHoster): - __name = "NarodRu" - __type = "hoster" - __version = "0.11" + __name__ = "NarodRu" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'http://(?:www\.)?narod(\.yandex)?\.ru/(disk|start/\d+\.\w+-narod\.yandex\.ru)/(?P<ID>\d+)/.+' + __pattern__ = r'http://(?:www\.)?narod(\.yandex)?\.ru/(disk|start/\d+\.\w+-narod\.yandex\.ru)/(?P<ID>\d+)/.+' - __description = """Narod.ru hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Narod.ru hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<dt class="name">(?:<[^<]*>)*(?P<N>[^<]+)</dt>' diff --git a/pyload/plugin/hoster/NetloadIn.py b/pyload/plugin/hoster/NetloadIn.py index 77ea27bcc..4ecd8d67b 100644 --- a/pyload/plugin/hoster/NetloadIn.py +++ b/pyload/plugin/hoster/NetloadIn.py @@ -15,7 +15,7 @@ def getInfo(urls): ## returns list of tupels (name, size (in bytes), status (see database.File), url) apiurl = "http://api.netload.in/info.php" - id_regex = re.compile(NetloadIn.__pattern) + id_regex = re.compile(NetloadIn.__pattern__) urls_per_query = 80 for chunk in chunks(urls, urls_per_query): @@ -60,15 +60,15 @@ def getInfo(urls): class NetloadIn(Hoster): - __name = "NetloadIn" - __type = "hoster" - __version = "0.47" + __name__ = "NetloadIn" + __type__ = "hoster" + __version__ = "0.47" - __pattern = r'https?://(?:[^/]*\.)?netload\.in/(?:datei(.*?)(?:\.htm|/)|index\.php?id=10&file_id=)' + __pattern__ = r'https?://(?:[^/]*\.)?netload\.in/(?:datei(.*?)(?:\.htm|/)|index\.php?id=10&file_id=)' - __description = """Netload.in hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Netload.in hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("RaNaN", "ranan@pyload.org"), ("Gregy", "gregy@gregy.cz")] @@ -113,7 +113,7 @@ class NetloadIn(Hoster): def download_api_data(self, n=0): url = self.url - id_regex = re.compile(self.__pattern) + id_regex = re.compile(self.__pattern__) match = id_regex.search(url) if match: diff --git a/pyload/plugin/hoster/NosuploadCom.py b/pyload/plugin/hoster/NosuploadCom.py index 02ceb65f2..56f70208d 100644 --- a/pyload/plugin/hoster/NosuploadCom.py +++ b/pyload/plugin/hoster/NosuploadCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class NosuploadCom(XFSHoster): - __name = "NosuploadCom" - __type = "hoster" - __version = "0.31" + __name__ = "NosuploadCom" + __type__ = "hoster" + __version__ = "0.31" - __pattern = r'http://(?:www\.)?nosupload\.com/\?d=\w{12}' + __pattern__ = r'http://(?:www\.)?nosupload\.com/\?d=\w{12}' - __description = """Nosupload.com hoster plugin""" - __license = "GPLv3" - __authors = [("igel", "igelkun@myopera.com")] + __description__ = """Nosupload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("igel", "igelkun@myopera.com")] HOSTER_DOMAIN = "nosupload.com" diff --git a/pyload/plugin/hoster/NovafileCom.py b/pyload/plugin/hoster/NovafileCom.py index ed39fa87e..7c709a777 100644 --- a/pyload/plugin/hoster/NovafileCom.py +++ b/pyload/plugin/hoster/NovafileCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class NovafileCom(XFSHoster): - __name = "NovafileCom" - __type = "hoster" - __version = "0.05" + __name__ = "NovafileCom" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?novafile\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?novafile\.com/\w{12}' - __description = """Novafile.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Novafile.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/NowDownloadSx.py b/pyload/plugin/hoster/NowDownloadSx.py index f9ba7e681..0a66319ab 100644 --- a/pyload/plugin/hoster/NowDownloadSx.py +++ b/pyload/plugin/hoster/NowDownloadSx.py @@ -7,15 +7,15 @@ from pyload.utils import fixup class NowDownloadSx(SimpleHoster): - __name = "NowDownloadSx" - __type = "hoster" - __version = "0.05" + __name__ = "NowDownloadSx" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?nowdownload\.(at|ch|co|eu|sx)/(dl/|download\.php\?id=)\w+' + __pattern__ = r'http://(?:www\.)?nowdownload\.(at|ch|co|eu|sx)/(dl/|download\.php\?id=)\w+' - __description = """NowDownload.sx hoster plugin""" - __license = "GPLv3" - __authors = [("godofdream", "soilfiction@gmail.com"), + __description__ = """NowDownload.sx hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("godofdream", "soilfiction@gmail.com"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/NowVideoSx.py b/pyload/plugin/hoster/NowVideoSx.py index 5f3d1954c..e672aeff5 100644 --- a/pyload/plugin/hoster/NowVideoSx.py +++ b/pyload/plugin/hoster/NowVideoSx.py @@ -6,18 +6,18 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class NowVideoSx(SimpleHoster): - __name = "NowVideoSx" - __type = "hoster" - __version = "0.07" + __name__ = "NowVideoSx" + __type__ = "hoster" + __version__ = "0.07" - __pattern = r'http://(?:www\.)?nowvideo\.(at|ch|co|eu|sx)/(video|mobile/#/videos)/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?nowvideo\.(at|ch|co|eu|sx)/(video|mobile/#/videos)/(?P<ID>\w+)' - __description = """NowVideo.sx hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """NowVideo.sx hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - URL_REPLACEMENTS = [(__pattern + ".*", r'http://www.nowvideo.at/video/\g<ID>')] + URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://www.nowvideo.at/video/\g<ID>')] NAME_PATTERN = r'<h4>(?P<N>.+?)<' OFFLINE_PATTERN = r'>This file no longer exists' diff --git a/pyload/plugin/hoster/OboomCom.py b/pyload/plugin/hoster/OboomCom.py index 7467dcaf5..70e117cf7 100644 --- a/pyload/plugin/hoster/OboomCom.py +++ b/pyload/plugin/hoster/OboomCom.py @@ -11,15 +11,15 @@ from pyload.plugin.internal.captcha import ReCaptcha class OboomCom(Hoster): - __name = "OboomCom" - __type = "hoster" - __version = "0.30" + __name__ = "OboomCom" + __type__ = "hoster" + __version__ = "0.30" - __pattern = r'https?://(?:www\.)?oboom\.com/(#(id=|/)?)?(?P<ID>\w{8})' + __pattern__ = r'https?://(?:www\.)?oboom\.com/(#(id=|/)?)?(?P<ID>\w{8})' - __description = """oboom.com hoster plugin""" - __license = "GPLv3" - __authors = [("stanley", "stanley.foerster@gmail.com")] + __description__ = """oboom.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stanley", "stanley.foerster@gmail.com")] RECAPTCHA_KEY = "6LdqpO0SAAAAAJGHXo63HyalP7H4qlRs_vff0kJX" @@ -51,7 +51,7 @@ class OboomCom(Hoster): def getFileId(self, url): - self.fileId = re.match(OboomCom.__pattern, url).group('ID') + self.fileId = re.match(OboomCom.__pattern__, url).group('ID') def getSessionToken(self): diff --git a/pyload/plugin/hoster/OneFichierCom.py b/pyload/plugin/hoster/OneFichierCom.py index eb48d7311..91cc7f001 100644 --- a/pyload/plugin/hoster/OneFichierCom.py +++ b/pyload/plugin/hoster/OneFichierCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class OneFichierCom(SimpleHoster): - __name = "OneFichierCom" - __type = "hoster" - __version = "0.74" + __name__ = "OneFichierCom" + __type__ = "hoster" + __version__ = "0.74" - __pattern = r'https?://(?:www\.)?(?:(?P<ID1>\w+)\.)?(?P<HOST>1fichier\.com|alterupload\.com|cjoint\.net|d(es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?(?P<ID2>\w+))?' + __pattern__ = r'https?://(?:www\.)?(?:(?P<ID1>\w+)\.)?(?P<HOST>1fichier\.com|alterupload\.com|cjoint\.net|d(es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?(?P<ID2>\w+))?' - __description = """1fichier.com hoster plugin""" - __license = "GPLv3" - __authors = [("fragonib", "fragonib[AT]yahoo[DOT]es"), + __description__ = """1fichier.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("fragonib", "fragonib[AT]yahoo[DOT]es"), ("the-razer", "daniel_ AT gmx DOT net"), ("zoidberg", "zoidberg@mujmail.cz"), ("imclem", ""), diff --git a/pyload/plugin/hoster/OronCom.py b/pyload/plugin/hoster/OronCom.py index f2efafc83..cbbaedae0 100644 --- a/pyload/plugin/hoster/OronCom.py +++ b/pyload/plugin/hoster/OronCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class OronCom(DeadHoster): - __name = "OronCom" - __type = "hoster" - __version = "0.14" + __name__ = "OronCom" + __type__ = "hoster" + __version__ = "0.14" - __pattern = r'https?://(?:www\.)?oron\.com/\w{12}' + __pattern__ = r'https?://(?:www\.)?oron\.com/\w{12}' - __description = """Oron.com hoster plugin""" - __license = "GPLv3" - __authors = [("chrox", "chrox@pyload.org"), + __description__ = """Oron.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("chrox", "chrox@pyload.org"), ("DHMH", "DHMH@pyload.org")] diff --git a/pyload/plugin/hoster/OverLoadMe.py b/pyload/plugin/hoster/OverLoadMe.py index e06aadfbe..c78d96a09 100644 --- a/pyload/plugin/hoster/OverLoadMe.py +++ b/pyload/plugin/hoster/OverLoadMe.py @@ -11,15 +11,15 @@ from pyload.utils import parseFileSize class OverLoadMe(Hoster): - __name = "OverLoadMe" - __type = "hoster" - __version = "0.02" + __name__ = "OverLoadMe" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://.*overload\.me.*' + __pattern__ = r'https?://.*overload\.me.*' - __description = """Over-Load.me hoster plugin""" - __license = "GPLv3" - __authors = [("marley", "marley@over-load.me")] + __description__ = """Over-Load.me hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("marley", "marley@over-load.me")] def getFilename(self, url): @@ -38,7 +38,7 @@ class OverLoadMe(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Over-Load") diff --git a/pyload/plugin/hoster/PandaplaNet.py b/pyload/plugin/hoster/PandaplaNet.py index 5c4a649b9..a078ca3c9 100644 --- a/pyload/plugin/hoster/PandaplaNet.py +++ b/pyload/plugin/hoster/PandaplaNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class PandaplaNet(DeadHoster): - __name = "PandaplaNet" - __type = "hoster" - __version = "0.03" + __name__ = "PandaplaNet" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?pandapla\.net/\w{12}' + __pattern__ = r'http://(?:www\.)?pandapla\.net/\w{12}' - __description = """Pandapla.net hoster plugin""" - __license = "GPLv3" - __authors = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] + __description__ = """Pandapla.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] getInfo = create_getInfo(PandaplaNet) diff --git a/pyload/plugin/hoster/PornhostCom.py b/pyload/plugin/hoster/PornhostCom.py index 653faf81f..aab337b2d 100644 --- a/pyload/plugin/hoster/PornhostCom.py +++ b/pyload/plugin/hoster/PornhostCom.py @@ -6,15 +6,15 @@ from pyload.plugin.Hoster import Hoster class PornhostCom(Hoster): - __name = "PornhostCom" - __type = "hoster" - __version = "0.20" + __name__ = "PornhostCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?pornhost\.com/(\d+/\d+\.html|\d+)' + __pattern__ = r'http://(?:www\.)?pornhost\.com/(\d+/\d+\.html|\d+)' - __description = """Pornhost.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de")] + __description__ = """Pornhost.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/PornhubCom.py b/pyload/plugin/hoster/PornhubCom.py index 48fd82871..9f8a5eec2 100644 --- a/pyload/plugin/hoster/PornhubCom.py +++ b/pyload/plugin/hoster/PornhubCom.py @@ -6,15 +6,15 @@ from pyload.plugin.Hoster import Hoster class PornhubCom(Hoster): - __name = "PornhubCom" - __type = "hoster" - __version = "0.50" + __name__ = "PornhubCom" + __type__ = "hoster" + __version__ = "0.50" - __pattern = r'http://(?:www\.)?pornhub\.com/view_video\.php\?viewkey=\w+' + __pattern__ = r'http://(?:www\.)?pornhub\.com/view_video\.php\?viewkey=\w+' - __description = """Pornhub.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de")] + __description__ = """Pornhub.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/PotloadCom.py b/pyload/plugin/hoster/PotloadCom.py index 08d5a7901..bcbcb57d0 100644 --- a/pyload/plugin/hoster/PotloadCom.py +++ b/pyload/plugin/hoster/PotloadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class PotloadCom(DeadHoster): - __name = "PotloadCom" - __type = "hoster" - __version = "0.02" + __name__ = "PotloadCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?potload\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?potload\.com/\w{12}' - __description = """Potload.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Potload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(PotloadCom) diff --git a/pyload/plugin/hoster/PremiumTo.py b/pyload/plugin/hoster/PremiumTo.py index 4591ec7bc..2dd72f75e 100644 --- a/pyload/plugin/hoster/PremiumTo.py +++ b/pyload/plugin/hoster/PremiumTo.py @@ -11,15 +11,15 @@ from pyload.utils import fs_encode class PremiumTo(Hoster): - __name = "PremiumTo" - __type = "hoster" - __version = "0.11" + __name__ = "PremiumTo" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'https?://(?:www\.)?premium\.to/.+' + __pattern__ = r'https?://(?:www\.)?premium\.to/.+' - __description = """Premium.to hoster plugin""" - __license = "GPLv3" - __authors = [("RaNaN", "RaNaN@pyload.org"), + __description__ = """Premium.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("RaNaN", "RaNaN@pyload.org"), ("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it")] diff --git a/pyload/plugin/hoster/PremiumizeMe.py b/pyload/plugin/hoster/PremiumizeMe.py index e56ccdbb0..5f0685483 100644 --- a/pyload/plugin/hoster/PremiumizeMe.py +++ b/pyload/plugin/hoster/PremiumizeMe.py @@ -5,15 +5,15 @@ from pyload.plugin.Hoster import Hoster class PremiumizeMe(Hoster): - __name = "PremiumizeMe" - __type = "hoster" - __version = "0.12" + __name__ = "PremiumizeMe" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'^unmatchable$' #: Since we want to allow the user to specify the list of hoster to use we let MultiHoster.activate + __pattern__ = r'^unmatchable$' #: Since we want to allow the user to specify the list of hoster to use we let MultiHoster.activate - __description = """Premiumize.me hoster plugin""" - __license = "GPLv3" - __authors = [("Florian Franzen", "FlorianFranzen@gmail.com")] + __description__ = """Premiumize.me hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Florian Franzen", "FlorianFranzen@gmail.com")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/PromptfileCom.py b/pyload/plugin/hoster/PromptfileCom.py index 315714025..f0752692e 100644 --- a/pyload/plugin/hoster/PromptfileCom.py +++ b/pyload/plugin/hoster/PromptfileCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class PromptfileCom(SimpleHoster): - __name = "PromptfileCom" - __type = "hoster" - __version = "0.12" + __name__ = "PromptfileCom" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'https?://(?:www\.)?promptfile\.com/' + __pattern__ = r'https?://(?:www\.)?promptfile\.com/' - __description = """Promptfile.com hoster plugin""" - __license = "GPLv3" - __authors = [("igel", "igelkun@myopera.com")] + __description__ = """Promptfile.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("igel", "igelkun@myopera.com")] INFO_PATTERN = r'<span style="[^"]*" title="[^"]*">(?P<N>.*?) \((?P<S>[\d.,]+) (?P<U>[\w^_]+)\)</span>' diff --git a/pyload/plugin/hoster/PrzeklejPl.py b/pyload/plugin/hoster/PrzeklejPl.py index faaa25e0f..ff19c770e 100644 --- a/pyload/plugin/hoster/PrzeklejPl.py +++ b/pyload/plugin/hoster/PrzeklejPl.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class PrzeklejPl(DeadHoster): - __name = "PrzeklejPl" - __type = "hoster" - __version = "0.11" + __name__ = "PrzeklejPl" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'http://(?:www\.)?przeklej\.pl/plik/.+' + __pattern__ = r'http://(?:www\.)?przeklej\.pl/plik/.+' - __description = """Przeklej.pl hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Przeklej.pl hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(PrzeklejPl) diff --git a/pyload/plugin/hoster/QuickshareCz.py b/pyload/plugin/hoster/QuickshareCz.py index ca250b47b..4c4b5df9d 100644 --- a/pyload/plugin/hoster/QuickshareCz.py +++ b/pyload/plugin/hoster/QuickshareCz.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class QuickshareCz(SimpleHoster): - __name = "QuickshareCz" - __type = "hoster" - __version = "0.55" + __name__ = "QuickshareCz" + __type__ = "hoster" + __version__ = "0.55" - __pattern = r'http://(?:[^/]*\.)?quickshare\.cz/stahnout-soubor/.*' + __pattern__ = r'http://(?:[^/]*\.)?quickshare\.cz/stahnout-soubor/.*' - __description = """Quickshare.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Quickshare.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<th width="145px">Název:</th>\s*<td style="word-wrap:break-word;">(?P<N>[^<]+)</td>' diff --git a/pyload/plugin/hoster/RPNetBiz.py b/pyload/plugin/hoster/RPNetBiz.py index aea39f76d..c6dfae9a6 100644 --- a/pyload/plugin/hoster/RPNetBiz.py +++ b/pyload/plugin/hoster/RPNetBiz.py @@ -7,15 +7,15 @@ from pyload.utils import json_loads class RPNetBiz(Hoster): - __name = "RPNetBiz" - __type = "hoster" - __version = "0.10" + __name__ = "RPNetBiz" + __type__ = "hoster" + __version__ = "0.10" - __description = """RPNet.biz hoster plugin""" - __license = "GPLv3" + __description__ = """RPNet.biz hoster plugin""" + __license__ = "GPLv3" - __pattern = r'https?://.*rpnet\.biz' - __authors = [("Dman", "dmanugm@gmail.com")] + __pattern__ = r'https?://.*rpnet\.biz' + __authors__ = [("Dman", "dmanugm@gmail.com")] def setup(self): @@ -24,7 +24,7 @@ class RPNetBiz(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): link_status = {'generated': pyfile.url} elif not self.account: # Check account diff --git a/pyload/plugin/hoster/RapidfileshareNet.py b/pyload/plugin/hoster/RapidfileshareNet.py index f2d3d7c63..e5c75a7bd 100644 --- a/pyload/plugin/hoster/RapidfileshareNet.py +++ b/pyload/plugin/hoster/RapidfileshareNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class RapidfileshareNet(XFSHoster): - __name = "RapidfileshareNet" - __type = "hoster" - __version = "0.02" + __name__ = "RapidfileshareNet" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?rapidfileshare\.net/\w{12}' + __pattern__ = r'http://(?:www\.)?rapidfileshare\.net/\w{12}' - __description = """Rapidfileshare.net hoster plugin""" - __license = "GPLv3" - __authors = [("guidobelix", "guidobelix@hotmail.it")] + __description__ = """Rapidfileshare.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("guidobelix", "guidobelix@hotmail.it")] HOSTER_DOMAIN = "rapidfileshare.net" diff --git a/pyload/plugin/hoster/RapidgatorNet.py b/pyload/plugin/hoster/RapidgatorNet.py index 91c9c4eec..153b0314e 100644 --- a/pyload/plugin/hoster/RapidgatorNet.py +++ b/pyload/plugin/hoster/RapidgatorNet.py @@ -12,15 +12,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class RapidgatorNet(SimpleHoster): - __name = "RapidgatorNet" - __type = "hoster" - __version = "0.26" + __name__ = "RapidgatorNet" + __type__ = "hoster" + __version__ = "0.26" - __pattern = r'http://(?:www\.)?(rapidgator\.net|rg\.to)/file/\w+' + __pattern__ = r'http://(?:www\.)?(rapidgator\.net|rg\.to)/file/\w+' - __description = """Rapidgator.net hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Rapidgator.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("chrox", ""), ("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/RapiduNet.py b/pyload/plugin/hoster/RapiduNet.py index 5e5971bf5..4b6ef55bb 100644 --- a/pyload/plugin/hoster/RapiduNet.py +++ b/pyload/plugin/hoster/RapiduNet.py @@ -11,15 +11,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class RapiduNet(SimpleHoster): - __name = "RapiduNet" - __type = "hoster" - __version = "0.02" + __name__ = "RapiduNet" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://(?:www\.)?rapidu\.net/(?P<ID>\d{10})' + __pattern__ = r'https?://(?:www\.)?rapidu\.net/(?P<ID>\d{10})' - __description = """Rapidu.net hoster plugin""" - __license = "GPLv3" - __authors = [("prOq", "")] + __description__ = """Rapidu.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("prOq", "")] COOKIES = [("rapidu.net", "rapidu_lang", "en")] diff --git a/pyload/plugin/hoster/RarefileNet.py b/pyload/plugin/hoster/RarefileNet.py index c14bb9008..6ea06720d 100644 --- a/pyload/plugin/hoster/RarefileNet.py +++ b/pyload/plugin/hoster/RarefileNet.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class RarefileNet(XFSHoster): - __name = "RarefileNet" - __type = "hoster" - __version = "0.08" + __name__ = "RarefileNet" + __type__ = "hoster" + __version__ = "0.08" - __pattern = r'http://(?:www\.)?rarefile\.net/\w{12}' + __pattern__ = r'http://(?:www\.)?rarefile\.net/\w{12}' - __description = """Rarefile.net hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Rarefile.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "rarefile.net" diff --git a/pyload/plugin/hoster/RealdebridCom.py b/pyload/plugin/hoster/RealdebridCom.py index 16744bc3d..c78fc8b55 100644 --- a/pyload/plugin/hoster/RealdebridCom.py +++ b/pyload/plugin/hoster/RealdebridCom.py @@ -12,15 +12,15 @@ from pyload.utils import parseFileSize class RealdebridCom(Hoster): - __name = "RealdebridCom" - __type = "hoster" - __version = "0.53" + __name__ = "RealdebridCom" + __type__ = "hoster" + __version__ = "0.53" - __pattern = r'https?://(?:[^/]*\.)?real-debrid\..*' + __pattern__ = r'https?://(?:[^/]*\.)?real-debrid\..*' - __description = """Real-Debrid.com hoster plugin""" - __license = "GPLv3" - __authors = [("Devirex Hazzard", "naibaf_11@yahoo.de")] + __description__ = """Real-Debrid.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Devirex Hazzard", "naibaf_11@yahoo.de")] def getFilename(self, url): @@ -39,7 +39,7 @@ class RealdebridCom(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Real-debrid") diff --git a/pyload/plugin/hoster/RedtubeCom.py b/pyload/plugin/hoster/RedtubeCom.py index 4ab976fdd..1f18d09c7 100644 --- a/pyload/plugin/hoster/RedtubeCom.py +++ b/pyload/plugin/hoster/RedtubeCom.py @@ -7,15 +7,15 @@ from pyload.utils import html_unescape class RedtubeCom(Hoster): - __name = "RedtubeCom" - __type = "hoster" - __version = "0.20" + __name__ = "RedtubeCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?redtube\.com/\d+' + __pattern__ = r'http://(?:www\.)?redtube\.com/\d+' - __description = """Redtube.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de")] + __description__ = """Redtube.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/RehostTo.py b/pyload/plugin/hoster/RehostTo.py index 75fae2449..7aa220187 100644 --- a/pyload/plugin/hoster/RehostTo.py +++ b/pyload/plugin/hoster/RehostTo.py @@ -6,15 +6,15 @@ from pyload.plugin.Hoster import Hoster class RehostTo(Hoster): - __name = "RehostTo" - __type = "hoster" - __version = "0.13" + __name__ = "RehostTo" + __type__ = "hoster" + __version__ = "0.13" - __pattern = r'https?://.*rehost\.to\..*' + __pattern__ = r'https?://.*rehost\.to\..*' - __description = """Rehost.com hoster plugin""" - __license = "GPLv3" - __authors = [("RaNaN", "RaNaN@pyload.org")] + __description__ = """Rehost.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("RaNaN", "RaNaN@pyload.org")] def getFilename(self, url): diff --git a/pyload/plugin/hoster/RemixshareCom.py b/pyload/plugin/hoster/RemixshareCom.py index 2cf2dd2ff..96467c1e7 100644 --- a/pyload/plugin/hoster/RemixshareCom.py +++ b/pyload/plugin/hoster/RemixshareCom.py @@ -14,15 +14,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class RemixshareCom(SimpleHoster): - __name = "RemixshareCom" - __type = "hoster" - __version = "0.02" + __name__ = "RemixshareCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'https?://remixshare\.com/(download|dl)/\w+' + __pattern__ = r'https?://remixshare\.com/(download|dl)/\w+' - __description = """Remixshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de"), + __description__ = """Remixshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/RgHostNet.py b/pyload/plugin/hoster/RgHostNet.py index 82dcf42df..7a16598b2 100644 --- a/pyload/plugin/hoster/RgHostNet.py +++ b/pyload/plugin/hoster/RgHostNet.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class RgHostNet(SimpleHoster): - __name = "RgHostNet" - __type = "hoster" - __version = "0.03" + __name__ = "RgHostNet" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?rghost\.net/\d+(?:r=\d+)?' + __pattern__ = r'http://(?:www\.)?rghost\.net/\d+(?:r=\d+)?' - __description = """RgHost.net hoster plugin""" - __license = "GPLv3" - __authors = [("z00nx", "z00nx0@gmail.com")] + __description__ = """RgHost.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("z00nx", "z00nx0@gmail.com")] INFO_PATTERN = r'<h1>\s+(<a[^>]+>)?(?P<N>[^<]+)(</a>)?\s+<small[^>]+>\s+\((?P<S>[^)]+)\)\s+</small>\s+</h1>' diff --git a/pyload/plugin/hoster/RyushareCom.py b/pyload/plugin/hoster/RyushareCom.py index 233ba57a4..e5b00db7f 100644 --- a/pyload/plugin/hoster/RyushareCom.py +++ b/pyload/plugin/hoster/RyushareCom.py @@ -10,15 +10,15 @@ from pyload.plugin.internal.captcha import SolveMedia class RyushareCom(XFSHoster): - __name = "RyushareCom" - __type = "hoster" - __version = "0.20" + __name__ = "RyushareCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?ryushare\.com/\w+' + __pattern__ = r'http://(?:www\.)?ryushare\.com/\w+' - __description = """Ryushare.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Ryushare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it"), ("quareevo", "quareevo@arcor.de")] diff --git a/pyload/plugin/hoster/SafesharingEu.py b/pyload/plugin/hoster/SafesharingEu.py index 40824d01f..3d7140c6e 100644 --- a/pyload/plugin/hoster/SafesharingEu.py +++ b/pyload/plugin/hoster/SafesharingEu.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class SafesharingEu(XFSHoster): - __name = "SafesharingEu" - __type = "hoster" - __version = "0.05" + __name__ = "SafesharingEu" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?safesharing\.eu/\w{12}' + __pattern__ = r'https?://(?:www\.)?safesharing\.eu/\w{12}' - __description = """Safesharing.eu hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] + __description__ = """Safesharing.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] HOSTER_DOMAIN = "safesharing.eu" diff --git a/pyload/plugin/hoster/SecureUploadEu.py b/pyload/plugin/hoster/SecureUploadEu.py index c332b890f..ec8bbfc57 100644 --- a/pyload/plugin/hoster/SecureUploadEu.py +++ b/pyload/plugin/hoster/SecureUploadEu.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class SecureUploadEu(XFSHoster): - __name = "SecureUploadEu" - __type = "hoster" - __version = "0.05" + __name__ = "SecureUploadEu" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?secureupload\.eu/\w{12}' + __pattern__ = r'https?://(?:www\.)?secureupload\.eu/\w{12}' - __description = """SecureUpload.eu hoster plugin""" - __license = "GPLv3" - __authors = [("z00nx", "z00nx0@gmail.com")] + __description__ = """SecureUpload.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("z00nx", "z00nx0@gmail.com")] HOSTER_DOMAIN = "secureupload.eu" diff --git a/pyload/plugin/hoster/SendmywayCom.py b/pyload/plugin/hoster/SendmywayCom.py index 2912600fa..86c505d2d 100644 --- a/pyload/plugin/hoster/SendmywayCom.py +++ b/pyload/plugin/hoster/SendmywayCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class SendmywayCom(XFSHoster): - __name = "SendmywayCom" - __type = "hoster" - __version = "0.04" + __name__ = "SendmywayCom" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?sendmyway\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?sendmyway\.com/\w{12}' - __description = """SendMyWay hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """SendMyWay hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "sendmyway.com" diff --git a/pyload/plugin/hoster/SendspaceCom.py b/pyload/plugin/hoster/SendspaceCom.py index bd92fb058..abdf52fa6 100644 --- a/pyload/plugin/hoster/SendspaceCom.py +++ b/pyload/plugin/hoster/SendspaceCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class SendspaceCom(SimpleHoster): - __name = "SendspaceCom" - __type = "hoster" - __version = "0.14" + __name__ = "SendspaceCom" + __type__ = "hoster" + __version__ = "0.14" - __pattern = r'http://(?:www\.)?sendspace\.com/file/.*' + __pattern__ = r'http://(?:www\.)?sendspace\.com/file/.*' - __description = """Sendspace.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Sendspace.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<h2 class="bgray">\s*<(?:b|strong)>(?P<N>[^<]+)</' diff --git a/pyload/plugin/hoster/Share4webCom.py b/pyload/plugin/hoster/Share4webCom.py index 479f42e90..4748c6e2a 100644 --- a/pyload/plugin/hoster/Share4webCom.py +++ b/pyload/plugin/hoster/Share4webCom.py @@ -5,15 +5,15 @@ from pyload.plugin.internal.SimpleHoster import create_getInfo class Share4webCom(UnibytesCom): - __name = "Share4webCom" - __type = "hoster" - __version = "0.11" + __name__ = "Share4webCom" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'https?://(?:www\.)?share4web\.com/get/\w+' + __pattern__ = r'https?://(?:www\.)?share4web\.com/get/\w+' - __description = """Share4web.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Share4web.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "share4web.com" diff --git a/pyload/plugin/hoster/Share76Com.py b/pyload/plugin/hoster/Share76Com.py index 43f74ec23..7f2cea757 100644 --- a/pyload/plugin/hoster/Share76Com.py +++ b/pyload/plugin/hoster/Share76Com.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class Share76Com(DeadHoster): - __name = "Share76Com" - __type = "hoster" - __version = "0.04" + __name__ = "Share76Com" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'http://(?:www\.)?share76\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?share76\.com/\w{12}' - __description = """Share76.com hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """Share76.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] getInfo = create_getInfo(Share76Com) diff --git a/pyload/plugin/hoster/ShareFilesCo.py b/pyload/plugin/hoster/ShareFilesCo.py index cbb5d3895..dd5c9b85d 100644 --- a/pyload/plugin/hoster/ShareFilesCo.py +++ b/pyload/plugin/hoster/ShareFilesCo.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class ShareFilesCo(DeadHoster): - __name = "ShareFilesCo" - __type = "hoster" - __version = "0.02" + __name__ = "ShareFilesCo" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?sharefiles\.co/\w{12}' + __pattern__ = r'http://(?:www\.)?sharefiles\.co/\w{12}' - __description = """Sharefiles.co hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Sharefiles.co hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(ShareFilesCo) diff --git a/pyload/plugin/hoster/SharebeesCom.py b/pyload/plugin/hoster/SharebeesCom.py index f46e85a5f..3843a352b 100644 --- a/pyload/plugin/hoster/SharebeesCom.py +++ b/pyload/plugin/hoster/SharebeesCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class SharebeesCom(DeadHoster): - __name = "SharebeesCom" - __type = "hoster" - __version = "0.02" + __name__ = "SharebeesCom" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?sharebees\.com/\w{12}' + __pattern__ = r'http://(?:www\.)?sharebees\.com/\w{12}' - __description = """ShareBees hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """ShareBees hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(SharebeesCom) diff --git a/pyload/plugin/hoster/ShareonlineBiz.py b/pyload/plugin/hoster/ShareonlineBiz.py index a1c5da2e6..55efe0019 100644 --- a/pyload/plugin/hoster/ShareonlineBiz.py +++ b/pyload/plugin/hoster/ShareonlineBiz.py @@ -12,21 +12,21 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class ShareonlineBiz(SimpleHoster): - __name = "ShareonlineBiz" - __type = "hoster" - __version = "0.44" + __name__ = "ShareonlineBiz" + __type__ = "hoster" + __version__ = "0.44" - __pattern = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P<ID>\w+)' - __description = """Shareonline.biz hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Shareonline.biz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("mkaay", "mkaay@mkaay.de"), ("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] - URL_REPLACEMENTS = [(__pattern + ".*", "http://www.share-online.biz/dl/\g<ID>")] + URL_REPLACEMENTS = [(__pattern__ + ".*", "http://www.share-online.biz/dl/\g<ID>")] RECAPTCHA_KEY = "6LdatrsSAAAAAHZrB70txiV5p-8Iv8BtVxlTtjKX" @@ -38,7 +38,7 @@ class ShareonlineBiz(SimpleHoster): info = {'name': urlparse(unquote(url)).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 3 if url else 1, 'url': url} if url: - info['pattern'] = re.match(cls.__pattern, url).groupdict() + info['pattern'] = re.match(cls.__pattern__, url).groupdict() field = getURL("http://api.share-online.biz/linkcheck.php", get={'md5': "1"}, diff --git a/pyload/plugin/hoster/ShareplaceCom.py b/pyload/plugin/hoster/ShareplaceCom.py index 173e7f41c..139426421 100644 --- a/pyload/plugin/hoster/ShareplaceCom.py +++ b/pyload/plugin/hoster/ShareplaceCom.py @@ -8,15 +8,15 @@ from pyload.plugin.Hoster import Hoster class ShareplaceCom(Hoster): - __name = "ShareplaceCom" - __type = "hoster" - __version = "0.11" + __name__ = "ShareplaceCom" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'(http://)?(?:www\.)?shareplace\.(com|org)/\?\w+' + __pattern__ = r'(http://)?(?:www\.)?shareplace\.(com|org)/\?\w+' - __description = """Shareplace.com hoster plugin""" - __license = "GPLv3" - __authors = [("ACCakut", "")] + __description__ = """Shareplace.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("ACCakut", "")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/SharingmatrixCom.py b/pyload/plugin/hoster/SharingmatrixCom.py index 8146d67b2..a20a36543 100644 --- a/pyload/plugin/hoster/SharingmatrixCom.py +++ b/pyload/plugin/hoster/SharingmatrixCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class SharingmatrixCom(DeadHoster): - __name = "SharingmatrixCom" - __type = "hoster" - __version = "0.01" + __name__ = "SharingmatrixCom" + __type__ = "hoster" + __version__ = "0.01" - __pattern = r'http://(?:www\.)?sharingmatrix\.com/file/\w+' + __pattern__ = r'http://(?:www\.)?sharingmatrix\.com/file/\w+' - __description = """Sharingmatrix.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Sharingmatrix.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("paulking", "")] diff --git a/pyload/plugin/hoster/ShragleCom.py b/pyload/plugin/hoster/ShragleCom.py index 139283cd1..f606726fe 100644 --- a/pyload/plugin/hoster/ShragleCom.py +++ b/pyload/plugin/hoster/ShragleCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class ShragleCom(DeadHoster): - __name = "ShragleCom" - __type = "hoster" - __version = "0.22" + __name__ = "ShragleCom" + __type__ = "hoster" + __version__ = "0.22" - __pattern = r'http://(?:www\.)?(cloudnator|shragle)\.com/files/(?P<ID>.*?)/' + __pattern__ = r'http://(?:www\.)?(cloudnator|shragle)\.com/files/(?P<ID>.*?)/' - __description = """Cloudnator.com (Shragle.com) hoster plugin""" - __license = "GPLv3" - __authors = [("RaNaN", "RaNaN@pyload.org"), + __description__ = """Cloudnator.com (Shragle.com) hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("RaNaN", "RaNaN@pyload.org"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/SimplyPremiumCom.py b/pyload/plugin/hoster/SimplyPremiumCom.py index 364c0bd0e..f2e00cbf1 100644 --- a/pyload/plugin/hoster/SimplyPremiumCom.py +++ b/pyload/plugin/hoster/SimplyPremiumCom.py @@ -9,15 +9,15 @@ from pyload.plugin.hoster.UnrestrictLi import secondsToMidnight class SimplyPremiumCom(Hoster): - __name = "SimplyPremiumCom" - __type = "hoster" - __version = "0.03" + __name__ = "SimplyPremiumCom" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'https?://.*(simply-premium)\.com' + __pattern__ = r'https?://.*(simply-premium)\.com' - __description = """Simply-Premium.com hoster plugin""" - __license = "GPLv3" - __authors = [("EvolutionClip", "evolutionclip@live.de")] + __description__ = """Simply-Premium.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("EvolutionClip", "evolutionclip@live.de")] def setup(self): @@ -26,7 +26,7 @@ class SimplyPremiumCom(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Simply-Premium.com") diff --git a/pyload/plugin/hoster/SimplydebridCom.py b/pyload/plugin/hoster/SimplydebridCom.py index a0ef4a596..f93e2bc12 100644 --- a/pyload/plugin/hoster/SimplydebridCom.py +++ b/pyload/plugin/hoster/SimplydebridCom.py @@ -6,15 +6,15 @@ from pyload.plugin.Hoster import Hoster class SimplydebridCom(Hoster): - __name = "SimplydebridCom" - __type = "hoster" - __version = "0.10" + __name__ = "SimplydebridCom" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/sd\.php/*' + __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/sd\.php/*' - __description = """Simply-debrid.com hoster plugin""" - __license = "GPLv3" - __authors = [("Kagenoshin", "kagenoshin@gmx.ch")] + __description__ = """Simply-debrid.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Kagenoshin", "kagenoshin@gmx.ch")] def setup(self): @@ -41,12 +41,12 @@ class SimplydebridCom(Hoster): if('fileparadox' in new_url): new_url = new_url.replace("http://", "https://") - if re.match(self.__pattern, new_url): + if re.match(self.__pattern__, new_url): new_url = new_url self.logDebug("New URL: %s" % new_url) - if not re.match(self.__pattern, new_url): + if not re.match(self.__pattern__, new_url): page = self.load("http://simply-debrid.com/api.php", get={'dl': new_url}) # +'&u='+self.user+'&p='+self.account.getAccountData(self.user)['password']) if 'tiger Link' in page or 'Invalid Link' in page or ('API' in page and 'ERROR' in page): self.fail(_("Unable to unrestrict link")) diff --git a/pyload/plugin/hoster/SockshareCom.py b/pyload/plugin/hoster/SockshareCom.py index 4ce005135..e85a74e49 100644 --- a/pyload/plugin/hoster/SockshareCom.py +++ b/pyload/plugin/hoster/SockshareCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class SockshareCom(DeadHoster): - __name = "SockshareCom" - __type = "hoster" - __version = "0.05" + __name__ = "SockshareCom" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?sockshare\.com/(mobile/)?(file|embed)/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?sockshare\.com/(mobile/)?(file|embed)/(?P<ID>\w+)' - __description = """Sockshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Sockshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] diff --git a/pyload/plugin/hoster/SoundcloudCom.py b/pyload/plugin/hoster/SoundcloudCom.py index 48a5b465c..cfb07b35d 100644 --- a/pyload/plugin/hoster/SoundcloudCom.py +++ b/pyload/plugin/hoster/SoundcloudCom.py @@ -7,15 +7,15 @@ from pyload.plugin.Hoster import Hoster class SoundcloudCom(Hoster): - __name = "SoundcloudCom" - __type = "hoster" - __version = "0.10" + __name__ = "SoundcloudCom" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'https?://(?:www\.)?soundcloud\.com/(?P<UID>.*?)/(?P<SID>.*)' + __pattern__ = r'https?://(?:www\.)?soundcloud\.com/(?P<UID>.*?)/(?P<SID>.*)' - __description = """SoundCloud.com hoster plugin""" - __license = "GPLv3" - __authors = [("Peekayy", "peekayy.dev@gmail.com")] + __description__ = """SoundCloud.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Peekayy", "peekayy.dev@gmail.com")] def process(self, pyfile): @@ -41,7 +41,7 @@ class SoundcloudCom(Hoster): if m: pyfile.name = m.group("TITLE") + ".mp3" else: - pyfile.name = re.match(self.__pattern, pyfile.url).group("SID") + ".mp3" + pyfile.name = re.match(self.__pattern__, pyfile.url).group("SID") + ".mp3" # url to retrieve the actual song url page = self.load("https://api.sndcdn.com/i1/tracks/%s/streams" % songId, get={"client_id": clientId}) diff --git a/pyload/plugin/hoster/SpeedLoadOrg.py b/pyload/plugin/hoster/SpeedLoadOrg.py index 39e27ef4c..588eb26a3 100644 --- a/pyload/plugin/hoster/SpeedLoadOrg.py +++ b/pyload/plugin/hoster/SpeedLoadOrg.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class SpeedLoadOrg(DeadHoster): - __name = "SpeedLoadOrg" - __type = "hoster" - __version = "1.02" + __name__ = "SpeedLoadOrg" + __type__ = "hoster" + __version__ = "1.02" - __pattern = r'http://(?:www\.)?speedload\.org/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?speedload\.org/(?P<ID>\w+)' - __description = """Speedload.org hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Speedload.org hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] getInfo = create_getInfo(SpeedLoadOrg) diff --git a/pyload/plugin/hoster/SpeedfileCz.py b/pyload/plugin/hoster/SpeedfileCz.py index 29af9db4f..f17aa6a59 100644 --- a/pyload/plugin/hoster/SpeedfileCz.py +++ b/pyload/plugin/hoster/SpeedfileCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class SpeedfileCz(DeadHoster): - __name = "SpeedFileCz" - __type = "hoster" - __version = "0.32" + __name__ = "SpeedFileCz" + __type__ = "hoster" + __version__ = "0.32" - __pattern = r'http://(?:www\.)?speedfile\.cz/.*' + __pattern__ = r'http://(?:www\.)?speedfile\.cz/.*' - __description = """Speedfile.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Speedfile.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(SpeedfileCz) diff --git a/pyload/plugin/hoster/SpeedyshareCom.py b/pyload/plugin/hoster/SpeedyshareCom.py index 959af8025..41c23f438 100644 --- a/pyload/plugin/hoster/SpeedyshareCom.py +++ b/pyload/plugin/hoster/SpeedyshareCom.py @@ -11,15 +11,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class SpeedyshareCom(SimpleHoster): - __name = "SpeedyshareCom" - __type = "hoster" - __version = "0.03" + __name__ = "SpeedyshareCom" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+' + __pattern__ = r'https?://(?:www\.)?(speedyshare\.com|speedy\.sh)/\w+' - __description = """Speedyshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] + __description__ = """Speedyshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] NAME_PATTERN = r'class=downloadfilename>(?P<N>.*)</span></td>' diff --git a/pyload/plugin/hoster/StorageTo.py b/pyload/plugin/hoster/StorageTo.py index 978a7f75d..4b18c69da 100644 --- a/pyload/plugin/hoster/StorageTo.py +++ b/pyload/plugin/hoster/StorageTo.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class StorageTo(DeadHoster): - __name = "StorageTo" - __type = "hoster" - __version = "0.01" + __name__ = "StorageTo" + __type__ = "hoster" + __version__ = "0.01" - __pattern = r'http://(?:www\.)?storage\.to/get/.+' + __pattern__ = r'http://(?:www\.)?storage\.to/get/.+' - __description = """Storage.to hoster plugin""" - __license = "GPLv3" - __authors = [("mkaay", "mkaay@mkaay.de")] + __description__ = """Storage.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("mkaay", "mkaay@mkaay.de")] getInfo = create_getInfo(StorageTo) diff --git a/pyload/plugin/hoster/StreamCz.py b/pyload/plugin/hoster/StreamCz.py index 831072d77..e5e389e20 100644 --- a/pyload/plugin/hoster/StreamCz.py +++ b/pyload/plugin/hoster/StreamCz.py @@ -21,15 +21,15 @@ def getInfo(urls): class StreamCz(Hoster): - __name = "StreamCz" - __type = "hoster" - __version = "0.20" + __name__ = "StreamCz" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'https?://(?:www\.)?stream\.cz/[^/]+/\d+.*' + __pattern__ = r'https?://(?:www\.)?stream\.cz/[^/]+/\d+.*' - __description = """Stream.cz hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Stream.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<link rel="video_src" href="http://www\.stream\.cz/\w+/(\d+)-([^"]+)" />' diff --git a/pyload/plugin/hoster/StreamcloudEu.py b/pyload/plugin/hoster/StreamcloudEu.py index 63bd24cbf..62e2504c4 100644 --- a/pyload/plugin/hoster/StreamcloudEu.py +++ b/pyload/plugin/hoster/StreamcloudEu.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class StreamcloudEu(XFSHoster): - __name = "StreamcloudEu" - __type = "hoster" - __version = "0.09" + __name__ = "StreamcloudEu" + __type__ = "hoster" + __version__ = "0.09" - __pattern = r'http://(?:www\.)?streamcloud\.eu/\w{12}' + __pattern__ = r'http://(?:www\.)?streamcloud\.eu/\w{12}' - __description = """Streamcloud.eu hoster plugin""" - __license = "GPLv3" - __authors = [("seoester", "seoester@googlemail.com")] + __description__ = """Streamcloud.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("seoester", "seoester@googlemail.com")] HOSTER_DOMAIN = "streamcloud.eu" diff --git a/pyload/plugin/hoster/TurbobitNet.py b/pyload/plugin/hoster/TurbobitNet.py index 2b0fb9ef5..1aaa555a9 100644 --- a/pyload/plugin/hoster/TurbobitNet.py +++ b/pyload/plugin/hoster/TurbobitNet.py @@ -15,19 +15,19 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo, ti class TurbobitNet(SimpleHoster): - __name = "TurbobitNet" - __type = "hoster" - __version = "0.16" + __name__ = "TurbobitNet" + __type__ = "hoster" + __version__ = "0.16" - __pattern = r'http://(?:www\.)?turbobit\.net/(?:download/free/)?(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?turbobit\.net/(?:download/free/)?(?P<ID>\w+)' - __description = """Turbobit.net hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Turbobit.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("prOq", "")] - URL_REPLACEMENTS = [(__pattern + ".*", "http://turbobit.net/\g<ID>.html")] + URL_REPLACEMENTS = [(__pattern__ + ".*", "http://turbobit.net/\g<ID>.html")] COOKIES = [("turbobit.net", "user_lang", "en")] @@ -95,7 +95,7 @@ class TurbobitNet(SimpleHoster): def getRtUpdate(self): rtUpdate = self.getStorage("rtUpdate") if not rtUpdate: - if self.getStorage("version") != self.__version \ + if self.getStorage("version") != self.__version__ \ or int(self.getStorage("timestamp", 0)) + 86400000 < timestamp(): # that's right, we are even using jdownloader updates rtUpdate = getURL("http://update0.jdownloader.org/pluginstuff/tbupdate.js") @@ -107,7 +107,7 @@ class TurbobitNet(SimpleHoster): self.setStorage("rtUpdate", rtUpdate) self.setStorage("timestamp", timestamp()) - self.setStorage("version", self.__version) + self.setStorage("version", self.__version__) else: self.logError(_("Unable to download, wait for update...")) self.tempOffline() diff --git a/pyload/plugin/hoster/TurbouploadCom.py b/pyload/plugin/hoster/TurbouploadCom.py index 01b5d306f..6be6280fb 100644 --- a/pyload/plugin/hoster/TurbouploadCom.py +++ b/pyload/plugin/hoster/TurbouploadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class TurbouploadCom(DeadHoster): - __name = "TurbouploadCom" - __type = "hoster" - __version = "0.03" + __name__ = "TurbouploadCom" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'http://(?:www\.)?turboupload\.com/(\w+).*' + __pattern__ = r'http://(?:www\.)?turboupload\.com/(\w+).*' - __description = """Turboupload.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Turboupload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(TurbouploadCom) diff --git a/pyload/plugin/hoster/TusfilesNet.py b/pyload/plugin/hoster/TusfilesNet.py index ff1540d9f..303d001df 100644 --- a/pyload/plugin/hoster/TusfilesNet.py +++ b/pyload/plugin/hoster/TusfilesNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class TusfilesNet(XFSHoster): - __name = "TusfilesNet" - __type = "hoster" - __version = "0.07" + __name__ = "TusfilesNet" + __type__ = "hoster" + __version__ = "0.07" - __pattern = r'https?://(?:www\.)?tusfiles\.net/\w{12}' + __pattern__ = r'https?://(?:www\.)?tusfiles\.net/\w{12}' - __description = """Tusfiles.net hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com"), + __description__ = """Tusfiles.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com"), ("guidobelix", "guidobelix@hotmail.it")] diff --git a/pyload/plugin/hoster/TwoSharedCom.py b/pyload/plugin/hoster/TwoSharedCom.py index 6d16ae1a6..637f9058c 100644 --- a/pyload/plugin/hoster/TwoSharedCom.py +++ b/pyload/plugin/hoster/TwoSharedCom.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class TwoSharedCom(SimpleHoster): - __name = "TwoSharedCom" - __type = "hoster" - __version = "0.12" + __name__ = "TwoSharedCom" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'http://(?:www\.)?2shared\.com/(account/)?(download|get|file|document|photo|video|audio)/.*' + __pattern__ = r'http://(?:www\.)?2shared\.com/(account/)?(download|get|file|document|photo|video|audio)/.*' - __description = """2Shared.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """2Shared.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<h1>(?P<N>.*)</h1>' diff --git a/pyload/plugin/hoster/UlozTo.py b/pyload/plugin/hoster/UlozTo.py index 1e5317950..d988b2ba5 100644 --- a/pyload/plugin/hoster/UlozTo.py +++ b/pyload/plugin/hoster/UlozTo.py @@ -13,15 +13,15 @@ def convertDecimalPrefix(m): class UlozTo(SimpleHoster): - __name = "UlozTo" - __type = "hoster" - __version = "1.00" + __name__ = "UlozTo" + __type__ = "hoster" + __version__ = "1.00" - __pattern = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<id>\w+/[^/?]*)' + __pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<id>\w+/[^/?]*)' - __description = """Uloz.to hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Uloz.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] INFO_PATTERN = r'<p>File <strong>(?P<N>[^<]+)</strong> is password protected</p>' diff --git a/pyload/plugin/hoster/UloziskoSk.py b/pyload/plugin/hoster/UloziskoSk.py index ab16c1da7..41bafdac6 100644 --- a/pyload/plugin/hoster/UloziskoSk.py +++ b/pyload/plugin/hoster/UloziskoSk.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class UloziskoSk(SimpleHoster): - __name = "UloziskoSk" - __type = "hoster" - __version = "0.24" + __name__ = "UloziskoSk" + __type__ = "hoster" + __version__ = "0.24" - __pattern = r'http://(?:www\.)?ulozisko\.sk/.*' + __pattern__ = r'http://(?:www\.)?ulozisko\.sk/.*' - __description = """Ulozisko.sk hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Ulozisko.sk hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'<div class="down1">(?P<N>[^<]+)</div>' diff --git a/pyload/plugin/hoster/UnibytesCom.py b/pyload/plugin/hoster/UnibytesCom.py index 8d1ca0344..1ce1f5c47 100644 --- a/pyload/plugin/hoster/UnibytesCom.py +++ b/pyload/plugin/hoster/UnibytesCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class UnibytesCom(SimpleHoster): - __name = "UnibytesCom" - __type = "hoster" - __version = "0.11" + __name__ = "UnibytesCom" + __type__ = "hoster" + __version__ = "0.11" - __pattern = r'https?://(?:www\.)?unibytes\.com/[\w .-]{11}B' + __pattern__ = r'https?://(?:www\.)?unibytes\.com/[\w .-]{11}B' - __description = """UniBytes.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """UniBytes.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] HOSTER_DOMAIN = "unibytes.com" diff --git a/pyload/plugin/hoster/UnrestrictLi.py b/pyload/plugin/hoster/UnrestrictLi.py index a1d3f1d75..116d98e47 100644 --- a/pyload/plugin/hoster/UnrestrictLi.py +++ b/pyload/plugin/hoster/UnrestrictLi.py @@ -19,15 +19,15 @@ def secondsToMidnight(gmt=0): class UnrestrictLi(Hoster): - __name = "UnrestrictLi" - __type = "hoster" - __version = "0.12" + __name__ = "UnrestrictLi" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'https?://(?:[^/]*\.)?(unrestrict|unr)\.li' + __pattern__ = r'https?://(?:[^/]*\.)?(unrestrict|unr)\.li' - __description = """Unrestrict.li hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """Unrestrict.li hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] def setup(self): @@ -36,7 +36,7 @@ class UnrestrictLi(Hoster): def process(self, pyfile): - if re.match(self.__pattern, pyfile.url): + if re.match(self.__pattern__, pyfile.url): new_url = pyfile.url elif not self.account: self.logError(_("Please enter your %s account or deactivate this plugin") % "Unrestrict.li") diff --git a/pyload/plugin/hoster/UpleaCom.py b/pyload/plugin/hoster/UpleaCom.py index d4931224a..3fed6c8cf 100644 --- a/pyload/plugin/hoster/UpleaCom.py +++ b/pyload/plugin/hoster/UpleaCom.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class UpleaCom(XFSHoster): - __name = "UpleaCom" - __type = "hoster" - __version = "0.05" + __name__ = "UpleaCom" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' + __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' - __description = """Uplea.com hoster plugin""" - __license = "GPLv3" - __authors = [("Redleon", "")] + __description__ = """Uplea.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Redleon", "")] HOSTER_DOMAIN = "uplea.com" diff --git a/pyload/plugin/hoster/UploadStationCom.py b/pyload/plugin/hoster/UploadStationCom.py index 7d3d806e2..9ece25cdb 100644 --- a/pyload/plugin/hoster/UploadStationCom.py +++ b/pyload/plugin/hoster/UploadStationCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class UploadStationCom(DeadHoster): - __name = "UploadStationCom" - __type = "hoster" - __version = "0.52" + __name__ = "UploadStationCom" + __type__ = "hoster" + __version__ = "0.52" - __pattern = r'http://(?:www\.)?uploadstation\.com/file/(?P<id>\w+)' + __pattern__ = r'http://(?:www\.)?uploadstation\.com/file/(?P<id>\w+)' - __description = """UploadStation.com hoster plugin""" - __license = "GPLv3" - __authors = [("fragonib", "fragonib[AT]yahoo[DOT]es"), + __description__ = """UploadStation.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("fragonib", "fragonib[AT]yahoo[DOT]es"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/UploadableCh.py b/pyload/plugin/hoster/UploadableCh.py index 5cb443d99..07ab51601 100644 --- a/pyload/plugin/hoster/UploadableCh.py +++ b/pyload/plugin/hoster/UploadableCh.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadableCh(SimpleHoster): - __name = "UploadableCh" - __type = "hoster" - __version = "0.02" + __name__ = "UploadableCh" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?uploadable\.ch/file/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?uploadable\.ch/file/(?P<ID>\w+)' - __description = """Uploadable.ch hoster plugin""" - __license = "GPLv3" - __authors = [("zapp-brannigan", "fuerst.reinje@web.de"), + __description__ = """Uploadable.ch hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"), ("Walter Purcaro", "vuolter@gmail.com")] @@ -28,7 +28,7 @@ class UploadableCh(SimpleHoster): WAIT_PATTERN = r'data-time="(\d+)" data-format' - FILE_URL_REPLACEMENTS = [(__pattern + ".*", r'http://www.uploadable.ch/file/\g<ID>')] + FILE_URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://www.uploadable.ch/file/\g<ID>')] def setup(self): diff --git a/pyload/plugin/hoster/UploadboxCom.py b/pyload/plugin/hoster/UploadboxCom.py index dcb966e8b..6285b56c5 100644 --- a/pyload/plugin/hoster/UploadboxCom.py +++ b/pyload/plugin/hoster/UploadboxCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class UploadboxCom(DeadHoster): - __name = "Uploadbox" - __type = "hoster" - __version = "0.05" + __name__ = "Uploadbox" + __type__ = "hoster" + __version__ = "0.05" - __pattern = r'http://(?:www\.)?uploadbox\.com/files/.+' + __pattern__ = r'http://(?:www\.)?uploadbox\.com/files/.+' - __description = """UploadBox.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """UploadBox.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(UploadboxCom) diff --git a/pyload/plugin/hoster/UploadedTo.py b/pyload/plugin/hoster/UploadedTo.py index 16420d361..eb52f9721 100644 --- a/pyload/plugin/hoster/UploadedTo.py +++ b/pyload/plugin/hoster/UploadedTo.py @@ -20,7 +20,7 @@ key = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw=".decode('base64') def getID(url): """ returns id from file url""" - m = re.match(UploadedTo.__pattern, url) + m = re.match(UploadedTo.__pattern__, url) return m.group('ID') @@ -92,15 +92,15 @@ def getInfo(urls): class UploadedTo(Hoster): - __name = "UploadedTo" - __type = "hoster" - __version = "0.75" + __name__ = "UploadedTo" + __type__ = "hoster" + __version__ = "0.75" - __pattern = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)' - __description = """Uploaded.net hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Uploaded.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("mkaay", "mkaay@mkaay.de"), ("zoidberg", "zoidberg@mujmail.cz"), ("netpok", "netpok@gmail.com"), @@ -163,7 +163,7 @@ class UploadedTo(Hoster): def handlePremium(self): info = self.account.getAccountInfo(self.user, True) - self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name, + self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name__, "left": info['trafficleft'] / 1024 / 1024}) if int(self.data[1]) / 1024 > info['trafficleft']: self.logInfo(_("Not enough traffic left")) diff --git a/pyload/plugin/hoster/UploadhereCom.py b/pyload/plugin/hoster/UploadhereCom.py index dd168bc3b..64b235eda 100644 --- a/pyload/plugin/hoster/UploadhereCom.py +++ b/pyload/plugin/hoster/UploadhereCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class UploadhereCom(DeadHoster): - __name = "UploadhereCom" - __type = "hoster" - __version = "0.12" + __name__ = "UploadhereCom" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'http://(?:www\.)?uploadhere\.com/\w{10}' + __pattern__ = r'http://(?:www\.)?uploadhere\.com/\w{10}' - __description = """Uploadhere.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Uploadhere.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(UploadhereCom) diff --git a/pyload/plugin/hoster/UploadheroCom.py b/pyload/plugin/hoster/UploadheroCom.py index 36b8a8b7d..f29832af2 100644 --- a/pyload/plugin/hoster/UploadheroCom.py +++ b/pyload/plugin/hoster/UploadheroCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadheroCom(SimpleHoster): - __name = "UploadheroCom" - __type = "hoster" - __version = "0.16" + __name__ = "UploadheroCom" + __type__ = "hoster" + __version__ = "0.16" - __pattern = r'http://(?:www\.)?uploadhero\.com?/dl/\w+' + __pattern__ = r'http://(?:www\.)?uploadhero\.com?/dl/\w+' - __description = """UploadHero.co plugin""" - __license = "GPLv3" - __authors = [("mcmyst", "mcmyst@hotmail.fr"), + __description__ = """UploadHero.co plugin""" + __license__ = "GPLv3" + __authors__ = [("mcmyst", "mcmyst@hotmail.fr"), ("zoidberg", "zoidberg@mujmail.cz")] @@ -60,7 +60,7 @@ class UploadheroCom(SimpleHoster): def handlePremium(self): - self.logDebug("%s: Use Premium Account" % self.__name) + self.logDebug("%s: Use Premium Account" % self.__name__) link = re.search(self.PREMIUM_URL_PATTERN, self.html).group(1) self.download(link) diff --git a/pyload/plugin/hoster/UploadingCom.py b/pyload/plugin/hoster/UploadingCom.py index 3a92d5f20..6a75a4fba 100644 --- a/pyload/plugin/hoster/UploadingCom.py +++ b/pyload/plugin/hoster/UploadingCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo, ti class UploadingCom(SimpleHoster): - __name = "UploadingCom" - __type = "hoster" - __version = "0.39" + __name__ = "UploadingCom" + __type__ = "hoster" + __version__ = "0.39" - __pattern = r'http://(?:www\.)?uploading\.com/files/(?:get/)?(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?uploading\.com/files/(?:get/)?(?P<ID>\w+)' - __description = """Uploading.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Uploading.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("mkaay", "mkaay@mkaay.de"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/UploadkingCom.py b/pyload/plugin/hoster/UploadkingCom.py index 429245c30..a490d0d48 100644 --- a/pyload/plugin/hoster/UploadkingCom.py +++ b/pyload/plugin/hoster/UploadkingCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class UploadkingCom(DeadHoster): - __name = "UploadkingCom" - __type = "hoster" - __version = "0.14" + __name__ = "UploadkingCom" + __type__ = "hoster" + __version__ = "0.14" - __pattern = r'http://(?:www\.)?uploadking\.com/\w{10}' + __pattern__ = r'http://(?:www\.)?uploadking\.com/\w{10}' - __description = """UploadKing.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """UploadKing.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] getInfo = create_getInfo(UploadkingCom) diff --git a/pyload/plugin/hoster/UpstoreNet.py b/pyload/plugin/hoster/UpstoreNet.py index e0153c742..9ed08d226 100644 --- a/pyload/plugin/hoster/UpstoreNet.py +++ b/pyload/plugin/hoster/UpstoreNet.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class UpstoreNet(SimpleHoster): - __name = "UpstoreNet" - __type = "hoster" - __version = "0.03" + __name__ = "UpstoreNet" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'https?://(?:www\.)?upstore\.net/' + __pattern__ = r'https?://(?:www\.)?upstore\.net/' - __description = """Upstore.Net File Download Hoster""" - __license = "GPLv3" - __authors = [("igel", "igelkun@myopera.com")] + __description__ = """Upstore.Net File Download Hoster""" + __license__ = "GPLv3" + __authors__ = [("igel", "igelkun@myopera.com")] INFO_PATTERN = r'<div class="comment">.*?</div>\s*\n<h2 style="margin:0">(?P<N>.*?)</h2>\s*\n<div class="comment">\s*\n\s*(?P<S>[\d.,]+) (?P<U>[\w^_]+)' diff --git a/pyload/plugin/hoster/UptoboxCom.py b/pyload/plugin/hoster/UptoboxCom.py index 6c126d627..a7cc49f2a 100644 --- a/pyload/plugin/hoster/UptoboxCom.py +++ b/pyload/plugin/hoster/UptoboxCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class UptoboxCom(XFSHoster): - __name = "UptoboxCom" - __type = "hoster" - __version = "0.16" + __name__ = "UptoboxCom" + __type__ = "hoster" + __version__ = "0.16" - __pattern = r'https?://(?:www\.)?uptobox\.com/\w{12}' + __pattern__ = r'https?://(?:www\.)?uptobox\.com/\w{12}' - __description = """Uptobox.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Uptobox.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] HOSTER_DOMAIN = "uptobox.com" diff --git a/pyload/plugin/hoster/VeehdCom.py b/pyload/plugin/hoster/VeehdCom.py index 30a89f0a8..91d7cc443 100644 --- a/pyload/plugin/hoster/VeehdCom.py +++ b/pyload/plugin/hoster/VeehdCom.py @@ -6,17 +6,17 @@ from pyload.plugin.Hoster import Hoster class VeehdCom(Hoster): - __name = "VeehdCom" - __type = "hoster" - __version = "0.23" + __name__ = "VeehdCom" + __type__ = "hoster" + __version__ = "0.23" - __pattern = r'http://veehd\.com/video/\d+_\S+' - __config = [("filename_spaces", "bool", "Allow spaces in filename", False), + __pattern__ = r'http://veehd\.com/video/\d+_\S+' + __config__ = [("filename_spaces", "bool", "Allow spaces in filename", False), ("replacement_char", "str", "Filename replacement character", "_")] - __description = """Veehd.com hoster plugin""" - __license = "GPLv3" - __authors = [("cat", "cat@pyload")] + __description__ = """Veehd.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("cat", "cat@pyload")] def setup(self): diff --git a/pyload/plugin/hoster/VeohCom.py b/pyload/plugin/hoster/VeohCom.py index 744497064..0f4f055bf 100644 --- a/pyload/plugin/hoster/VeohCom.py +++ b/pyload/plugin/hoster/VeohCom.py @@ -6,22 +6,22 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class VeohCom(SimpleHoster): - __name = "VeohCom" - __type = "hoster" - __version = "0.21" + __name__ = "VeohCom" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'http://(?:www\.)?veoh\.com/(tv/)?(watch|videos)/(?P<ID>v\w+)' - __config = [("quality", "Low;High;Auto", "Quality", "Auto")] + __pattern__ = r'http://(?:www\.)?veoh\.com/(tv/)?(watch|videos)/(?P<ID>v\w+)' + __config__ = [("quality", "Low;High;Auto", "Quality", "Auto")] - __description = """Veoh.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Veoh.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] NAME_PATTERN = r'<meta name="title" content="(?P<N>.*?)"' OFFLINE_PATTERN = r'>Sorry, we couldn\'t find the video you were looking for' - URL_REPLACEMENTS = [(__pattern + ".*", r'http://www.veoh.com/watch/\g<ID>')] + URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://www.veoh.com/watch/\g<ID>')] COOKIES = [("veoh.com", "lassieLocale", "en")] diff --git a/pyload/plugin/hoster/VidPlayNet.py b/pyload/plugin/hoster/VidPlayNet.py index 8849bafcf..657213c3a 100644 --- a/pyload/plugin/hoster/VidPlayNet.py +++ b/pyload/plugin/hoster/VidPlayNet.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class VidPlayNet(XFSHoster): - __name = "VidPlayNet" - __type = "hoster" - __version = "0.04" + __name__ = "VidPlayNet" + __type__ = "hoster" + __version__ = "0.04" - __pattern = r'https?://(?:www\.)?vidplay\.net/\w{12}' + __pattern__ = r'https?://(?:www\.)?vidplay\.net/\w{12}' - __description = """VidPlay.net hoster plugin""" - __license = "GPLv3" - __authors = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] + __description__ = """VidPlay.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("t4skforce", "t4skforce1337[AT]gmail[DOT]com")] HOSTER_DOMAIN = "vidplay.net" diff --git a/pyload/plugin/hoster/VimeoCom.py b/pyload/plugin/hoster/VimeoCom.py index 63a0ec882..07abf31e3 100644 --- a/pyload/plugin/hoster/VimeoCom.py +++ b/pyload/plugin/hoster/VimeoCom.py @@ -6,24 +6,24 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class VimeoCom(SimpleHoster): - __name = "VimeoCom" - __type = "hoster" - __version = "0.03" + __name__ = "VimeoCom" + __type__ = "hoster" + __version__ = "0.03" - __pattern = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)' - __config = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"), + __pattern__ = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)' + __config__ = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"), ("original", "bool", "Try to download the original file first", True)] - __description = """Vimeo.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Vimeo.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] NAME_PATTERN = r'<title>(?P<N>.+) on Vimeo<' OFFLINE_PATTERN = r'class="exception_header"' TEMP_OFFLINE_PATTERN = r'Please try again in a few minutes.<' - URL_REPLACEMENTS = [(__pattern + ".*", r'https://www.vimeo.com/\g<ID>')] + URL_REPLACEMENTS = [(__pattern__ + ".*", r'https://www.vimeo.com/\g<ID>')] COOKIES = [("vimeo.com", "language", "en")] @@ -41,7 +41,7 @@ class VimeoCom(SimpleHoster): html = self.js.eval(self.load(self.pyfile.url, get={'action': "download", 'password': password}, decode=True)) pattern = r'href="(?P<URL>http://vimeo\.com.+?)".*?\>(?P<QL>.+?) ' else: - id = re.match(self.__pattern, self.pyfile.url).group("ID") + id = re.match(self.__pattern__, self.pyfile.url).group("ID") html = self.load("https://player.vimeo.com/video/" + id, get={'password': password}) pattern = r'"(?P<QL>\w+)":{"profile".*?"(?P<URL>http://pdl\.vimeocdn\.com.+?)"' diff --git a/pyload/plugin/hoster/Vipleech4uCom.py b/pyload/plugin/hoster/Vipleech4uCom.py index 8936bee98..b56096d46 100644 --- a/pyload/plugin/hoster/Vipleech4uCom.py +++ b/pyload/plugin/hoster/Vipleech4uCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class Vipleech4uCom(DeadHoster): - __name = "Vipleech4uCom" - __type = "hoster" - __version = "0.20" + __name__ = "Vipleech4uCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?vipleech4u\.com/manager\.php' + __pattern__ = r'http://(?:www\.)?vipleech4u\.com/manager\.php' - __description = """Vipleech4u.com hoster plugin""" - __license = "GPLv3" - __authors = [("Kagenoshin", "kagenoshin@gmx.ch")] + __description__ = """Vipleech4u.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Kagenoshin", "kagenoshin@gmx.ch")] getInfo = create_getInfo(Vipleech4uCom) diff --git a/pyload/plugin/hoster/WarserverCz.py b/pyload/plugin/hoster/WarserverCz.py index 3f935341c..1631a021d 100644 --- a/pyload/plugin/hoster/WarserverCz.py +++ b/pyload/plugin/hoster/WarserverCz.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class WarserverCz(DeadHoster): - __name = "WarserverCz" - __type = "hoster" - __version = "0.13" + __name__ = "WarserverCz" + __type__ = "hoster" + __version__ = "0.13" - __pattern = r'http://(?:www\.)?warserver\.cz/stahnout/\d+' + __pattern__ = r'http://(?:www\.)?warserver\.cz/stahnout/\d+' - __description = """Warserver.cz hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Warserver.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] getInfo = create_getInfo(WarserverCz) diff --git a/pyload/plugin/hoster/WebshareCz.py b/pyload/plugin/hoster/WebshareCz.py index 4f5b78d68..946200b58 100644 --- a/pyload/plugin/hoster/WebshareCz.py +++ b/pyload/plugin/hoster/WebshareCz.py @@ -8,7 +8,7 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster def getInfo(urls): for url in urls: - fid = re.search(WebshareCz.__pattern, url).group('ID') + fid = re.search(WebshareCz.__pattern__, url).group('ID') api_data = getURL("https://webshare.cz/api/file_info/", post={'ident': fid}) if 'File not found' in api_data: @@ -22,15 +22,15 @@ def getInfo(urls): class WebshareCz(SimpleHoster): - __name = "WebshareCz" - __type = "hoster" - __version = "0.14" + __name__ = "WebshareCz" + __type__ = "hoster" + __version__ = "0.14" - __pattern = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)' - __description = """WebShare.cz hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it")] + __description__ = """WebShare.cz hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it")] def handleFree(self): @@ -48,7 +48,7 @@ class WebshareCz(SimpleHoster): def getFileInfo(self): self.logDebug("URL: %s" % self.pyfile.url) - self.fid = re.match(self.__pattern, self.pyfile.url).group('ID') + self.fid = re.match(self.__pattern__, self.pyfile.url).group('ID') self.load(self.pyfile.url) api_data = self.load('https://webshare.cz/api/file_info/', post={'ident': self.fid}) diff --git a/pyload/plugin/hoster/WrzucTo.py b/pyload/plugin/hoster/WrzucTo.py index ad0a88d02..76ed73be6 100644 --- a/pyload/plugin/hoster/WrzucTo.py +++ b/pyload/plugin/hoster/WrzucTo.py @@ -8,15 +8,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class WrzucTo(SimpleHoster): - __name = "WrzucTo" - __type = "hoster" - __version = "0.02" + __name__ = "WrzucTo" + __type__ = "hoster" + __version__ = "0.02" - __pattern = r'http://(?:www\.)?wrzuc\.to/(\w+(\.wt|\.html)|(\w+/?linki/\w+))' + __pattern__ = r'http://(?:www\.)?wrzuc\.to/(\w+(\.wt|\.html)|(\w+/?linki/\w+))' - __description = """Wrzuc.to hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Wrzuc.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'id="file_info">\s*<strong>(?P<N>.*?)</strong>' diff --git a/pyload/plugin/hoster/WuploadCom.py b/pyload/plugin/hoster/WuploadCom.py index 6eb3594f5..8ad846ad8 100644 --- a/pyload/plugin/hoster/WuploadCom.py +++ b/pyload/plugin/hoster/WuploadCom.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class WuploadCom(DeadHoster): - __name = "WuploadCom" - __type = "hoster" - __version = "0.23" + __name__ = "WuploadCom" + __type__ = "hoster" + __version__ = "0.23" - __pattern = r'http://(?:www\.)?wupload\..*?/file/((\w+/)?\d+)(/.*)?' + __pattern__ = r'http://(?:www\.)?wupload\..*?/file/((\w+/)?\d+)(/.*)?' - __description = """Wupload.com hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Wupload.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("Paul King", "")] diff --git a/pyload/plugin/hoster/X7To.py b/pyload/plugin/hoster/X7To.py index d8a3b30d9..6ccc6d637 100644 --- a/pyload/plugin/hoster/X7To.py +++ b/pyload/plugin/hoster/X7To.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class X7To(DeadHoster): - __name = "X7To" - __type = "hoster" - __version = "0.41" + __name__ = "X7To" + __type__ = "hoster" + __version__ = "0.41" - __pattern = r'http://(?:www\.)?x7\.to/' + __pattern__ = r'http://(?:www\.)?x7\.to/' - __description = """X7.to hoster plugin""" - __license = "GPLv3" - __authors = [("ernieb", "ernieb")] + __description__ = """X7.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("ernieb", "ernieb")] getInfo = create_getInfo(X7To) diff --git a/pyload/plugin/hoster/XFileSharingPro.py b/pyload/plugin/hoster/XFileSharingPro.py index 9da17fd0d..54631baba 100644 --- a/pyload/plugin/hoster/XFileSharingPro.py +++ b/pyload/plugin/hoster/XFileSharingPro.py @@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo class XFileSharingPro(XFSHoster): - __name = "XFileSharingPro" - __type = "hoster" - __version = "0.43" + __name__ = "XFileSharingPro" + __type__ = "hoster" + __version__ = "0.43" - __pattern = r'^unmatchable$' + __pattern__ = r'^unmatchable$' - __description = """XFileSharingPro dummy hoster plugin for hook""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """XFileSharingPro dummy hoster plugin for hook""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] URL_REPLACEMENTS = [("/embed-", "/")] @@ -23,15 +23,15 @@ class XFileSharingPro(XFSHoster): def _log(self, type, args): msg = " | ".join([str(a).strip() for a in args if a]) logger = getattr(self.log, type) - logger("%s: %s: %s" % (self.__name, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) + logger("%s: %s: %s" % (self.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) def init(self): super(XFileSharingPro, self).init() - self.__pattern = self.core.pluginManager.hosterPlugins[self.__name]['pattern'] + self.__pattern__ = self.core.pluginManager.hosterPlugins[self.__name__]['pattern'] - self.HOSTER_DOMAIN = re.match(self.__pattern, self.pyfile.url).group(1).lower() + self.HOSTER_DOMAIN = re.match(self.__pattern__, self.pyfile.url).group(1).lower() self.HOSTER_NAME = "".join([str.capitalize() for str in self.HOSTER_DOMAIN.split('.')]) account = self.core.accountManager.getAccountPlugin(self.HOSTER_NAME) diff --git a/pyload/plugin/hoster/XHamsterCom.py b/pyload/plugin/hoster/XHamsterCom.py index e1b0d8c32..92340152f 100644 --- a/pyload/plugin/hoster/XHamsterCom.py +++ b/pyload/plugin/hoster/XHamsterCom.py @@ -17,16 +17,16 @@ def clean_json(json_expr): class XHamsterCom(Hoster): - __name = "XHamsterCom" - __type = "hoster" - __version = "0.12" + __name__ = "XHamsterCom" + __type__ = "hoster" + __version__ = "0.12" - __pattern = r'http://(?:www\.)?xhamster\.com/movies/.+' - __config = [("type", ".mp4;.flv", "Preferred type", ".mp4")] + __pattern__ = r'http://(?:www\.)?xhamster\.com/movies/.+' + __config__ = [("type", ".mp4;.flv", "Preferred type", ".mp4")] - __description = """XHamster.com hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """XHamster.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] def process(self, pyfile): diff --git a/pyload/plugin/hoster/XVideosCom.py b/pyload/plugin/hoster/XVideosCom.py index b54407b6f..abc5c0f13 100644 --- a/pyload/plugin/hoster/XVideosCom.py +++ b/pyload/plugin/hoster/XVideosCom.py @@ -8,21 +8,21 @@ from pyload.plugin.Hoster import Hoster class XVideosCom(Hoster): - __name = "XVideos.com" - __type = "hoster" - __version = "0.10" + __name__ = "XVideos.com" + __type__ = "hoster" + __version__ = "0.10" - __pattern = r'http://(?:www\.)?xvideos\.com/video(\d+)/.*' + __pattern__ = r'http://(?:www\.)?xvideos\.com/video(\d+)/.*' - __description = """XVideos.com hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """XVideos.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] def process(self, pyfile): site = self.load(pyfile.url) pyfile.name = "%s (%s).flv" % ( re.search(r"<h2>([^<]+)<span", site).group(1), - re.match(self.__pattern, pyfile.url).group(1), + re.match(self.__pattern__, pyfile.url).group(1), ) self.download(unquote(re.search(r"flv_url=([^&]+)&", site).group(1))) diff --git a/pyload/plugin/hoster/Xdcc.py b/pyload/plugin/hoster/Xdcc.py index 1ce8ee677..91309b286 100644 --- a/pyload/plugin/hoster/Xdcc.py +++ b/pyload/plugin/hoster/Xdcc.py @@ -15,17 +15,17 @@ from pyload.utils import safe_join class Xdcc(Hoster): - __name = "Xdcc" - __type = "hoster" - __version = "0.32" + __name__ = "Xdcc" + __type__ = "hoster" + __version__ = "0.32" - __config = [("nick", "str", "Nickname", "pyload"), + __config__ = [("nick", "str", "Nickname", "pyload"), ("ident", "str", "Ident", "pyloadident"), ("realname", "str", "Realname", "pyloadreal")] - __description = """Download from IRC XDCC bot""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.com")] + __description__ = """Download from IRC XDCC bot""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.com")] def setup(self): @@ -36,7 +36,7 @@ class Xdcc(Hoster): def process(self, pyfile): # change request type - self.req = pyfile.m.core.requestFactory.getRequest(self.__name, type="XDCC") + self.req = pyfile.m.core.requestFactory.getRequest(self.__name__, type="XDCC") self.pyfile = pyfile for _i in xrange(0, 3): diff --git a/pyload/plugin/hoster/YibaishiwuCom.py b/pyload/plugin/hoster/YibaishiwuCom.py index 563047e57..f7640390f 100644 --- a/pyload/plugin/hoster/YibaishiwuCom.py +++ b/pyload/plugin/hoster/YibaishiwuCom.py @@ -7,15 +7,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class YibaishiwuCom(SimpleHoster): - __name = "YibaishiwuCom" - __type = "hoster" - __version = "0.13" + __name__ = "YibaishiwuCom" + __type__ = "hoster" + __version__ = "0.13" - __pattern = r'http://(?:www\.)?(?:u\.)?115\.com/file/(?P<ID>\w+)' + __pattern__ = r'http://(?:www\.)?(?:u\.)?115\.com/file/(?P<ID>\w+)' - __description = """115.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """115.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] NAME_PATTERN = r'file_name: \'(?P<N>.+?)\'' diff --git a/pyload/plugin/hoster/YoupornCom.py b/pyload/plugin/hoster/YoupornCom.py index 8f77a15dd..75606935d 100644 --- a/pyload/plugin/hoster/YoupornCom.py +++ b/pyload/plugin/hoster/YoupornCom.py @@ -6,15 +6,15 @@ from pyload.plugin.Hoster import Hoster class YoupornCom(Hoster): - __name = "YoupornCom" - __type = "hoster" - __version = "0.20" + __name__ = "YoupornCom" + __type__ = "hoster" + __version__ = "0.20" - __pattern = r'http://(?:www\.)?youporn\.com/watch/.+' + __pattern__ = r'http://(?:www\.)?youporn\.com/watch/.+' - __description = """Youporn.com hoster plugin""" - __license = "GPLv3" - __authors = [("willnix", "willnix@pyload.org")] + __description__ = """Youporn.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("willnix", "willnix@pyload.org")] def process(self, pyfile): diff --git a/pyload/plugin/hoster/YourfilesTo.py b/pyload/plugin/hoster/YourfilesTo.py index a58df5b72..5f84d6bef 100644 --- a/pyload/plugin/hoster/YourfilesTo.py +++ b/pyload/plugin/hoster/YourfilesTo.py @@ -8,15 +8,15 @@ from pyload.plugin.Hoster import Hoster class YourfilesTo(Hoster): - __name = "YourfilesTo" - __type = "hoster" - __version = "0.21" + __name__ = "YourfilesTo" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'(http://)?(?:www\.)?yourfiles\.(to|biz)/\?d=\w+' + __pattern__ = r'(http://)?(?:www\.)?yourfiles\.(to|biz)/\?d=\w+' - __description = """Youfiles.to hoster plugin""" - __license = "GPLv3" - __authors = [("jeix", "jeix@hasnomail.de"), + __description__ = """Youfiles.to hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("jeix", "jeix@hasnomail.de"), ("skydancer", "skydancer@hasnomail.de")] diff --git a/pyload/plugin/hoster/YoutubeCom.py b/pyload/plugin/hoster/YoutubeCom.py index b0e4c82f5..c7e7a6c85 100644 --- a/pyload/plugin/hoster/YoutubeCom.py +++ b/pyload/plugin/hoster/YoutubeCom.py @@ -35,12 +35,12 @@ def which(program): class YoutubeCom(Hoster): - __name = "YoutubeCom" - __type = "hoster" - __version = "0.40" + __name__ = "YoutubeCom" + __type__ = "hoster" + __version__ = "0.40" - __pattern = r'https?://(?:[^/]*\.)?(?:youtube\.com|youtu\.be)/watch.*?[?&]v=.*' - __config = [("quality", "sd;hd;fullhd;240p;360p;480p;720p;1080p;3072p", "Quality Setting", "hd"), + __pattern__ = r'https?://(?:[^/]*\.)?(?:youtube\.com|youtu\.be)/watch.*?[?&]v=.*' + __config__ = [("quality", "sd;hd;fullhd;240p;360p;480p;720p;1080p;3072p", "Quality Setting", "hd"), ("fmt", "int", "FMT/ITAG Number (5-102, 0 for auto)", 0), (".mp4", "bool", "Allow .mp4", True), (".flv", "bool", "Allow .flv", True), @@ -48,9 +48,9 @@ class YoutubeCom(Hoster): (".3gp", "bool", "Allow .3gp", False), ("3d", "bool", "Prefer 3D", False)] - __description = """Youtube.com hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Youtube.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("zoidberg", "zoidberg@mujmail.cz")] diff --git a/pyload/plugin/hoster/ZDF.py b/pyload/plugin/hoster/ZDF.py index c02eadc23..da6d6448e 100644 --- a/pyload/plugin/hoster/ZDF.py +++ b/pyload/plugin/hoster/ZDF.py @@ -9,15 +9,15 @@ from pyload.plugin.Hoster import Hoster # Based on zdfm by Roland Beermann (http://github.com/enkore/zdfm/) class ZDF(Hoster): - __name = "ZDF Mediathek" - __type = "hoster" - __version = "0.80" + __name__ = "ZDF Mediathek" + __type__ = "hoster" + __version__ = "0.80" - __pattern = r'http://(?:www\.)?zdf\.de/ZDFmediathek/\D*(\d+)\D*' + __pattern__ = r'http://(?:www\.)?zdf\.de/ZDFmediathek/\D*(\d+)\D*' - __description = """ZDF.de hoster plugin""" - __license = "GPLv3" - __authors = [] + __description__ = """ZDF.de hoster plugin""" + __license__ = "GPLv3" + __authors__ = [] XML_API = "http://www.zdf.de/ZDFmediathek/xmlservice/web/beitragsDetails?id=%i" diff --git a/pyload/plugin/hoster/ZShareNet.py b/pyload/plugin/hoster/ZShareNet.py index 1ab0cc996..a6a34143f 100644 --- a/pyload/plugin/hoster/ZShareNet.py +++ b/pyload/plugin/hoster/ZShareNet.py @@ -4,15 +4,15 @@ from pyload.plugin.internal.DeadHoster import DeadHoster, create_getInfo class ZShareNet(DeadHoster): - __name = "ZShareNet" - __type = "hoster" - __version = "0.21" + __name__ = "ZShareNet" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'https?://(?:ww[2w]\.)?zshares?\.net/.+' + __pattern__ = r'https?://(?:ww[2w]\.)?zshares?\.net/.+' - __description = """ZShare.net hoster plugin""" - __license = "GPLv3" - __authors = [("espes", ""), + __description__ = """ZShare.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("espes", ""), ("Cptn Sandwich", "")] diff --git a/pyload/plugin/hoster/ZeveraCom.py b/pyload/plugin/hoster/ZeveraCom.py index 3eeccc52c..93959637c 100644 --- a/pyload/plugin/hoster/ZeveraCom.py +++ b/pyload/plugin/hoster/ZeveraCom.py @@ -4,15 +4,15 @@ from pyload.plugin.Hoster import Hoster class ZeveraCom(Hoster): - __name = "ZeveraCom" - __type = "hoster" - __version = "0.21" + __name__ = "ZeveraCom" + __type__ = "hoster" + __version__ = "0.21" - __pattern = r'http://(?:www\.)?zevera\.com/.*' + __pattern__ = r'http://(?:www\.)?zevera\.com/.*' - __description = """Zevera.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] + __description__ = """Zevera.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] def setup(self): diff --git a/pyload/plugin/hoster/ZippyshareCom.py b/pyload/plugin/hoster/ZippyshareCom.py index 1bf9338c3..fa08cf18f 100644 --- a/pyload/plugin/hoster/ZippyshareCom.py +++ b/pyload/plugin/hoster/ZippyshareCom.py @@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo class ZippyshareCom(SimpleHoster): - __name = "ZippyshareCom" - __type = "hoster" - __version = "0.62" + __name__ = "ZippyshareCom" + __type__ = "hoster" + __version__ = "0.62" - __pattern = r'(?P<HOST>http://www\d{0,2}\.zippyshare\.com)/v(?:/|iew\.jsp.*key=)(?P<KEY>\d+)' + __pattern__ = r'(?P<HOST>http://www\d{0,2}\.zippyshare\.com)/v(?:/|iew\.jsp.*key=)(?P<KEY>\d+)' - __description = """Zippyshare.com hoster plugin""" - __license = "GPLv3" - __authors = [("Walter Purcaro", "vuolter@gmail.com")] + __description__ = """Zippyshare.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] NAME_PATTERN = r'("\d{6,}/"[ ]*\+.+?"/|<title>Zippyshare.com - )(?P<N>.+?)("|</title>)' |