diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-10 19:07:53 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-10 19:07:53 +0100 |
commit | 2439bc22671dde697817291b721bfddb792a93b4 (patch) | |
tree | dad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/hoster/FileserveCom.py | |
parent | Revert plugin directory structure (diff) | |
download | pyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz |
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hoster/FileserveCom.py')
-rw-r--r-- | pyload/plugins/hoster/FileserveCom.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugins/hoster/FileserveCom.py b/pyload/plugins/hoster/FileserveCom.py index 5c94d42fa..1b59750f2 100644 --- a/pyload/plugins/hoster/FileserveCom.py +++ b/pyload/plugins/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", None), ("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, |