summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/FileserveCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 12:44:15 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 12:44:15 +0100
commitce103ce1e60661f7bcdf6a033335134de61d48b1 (patch)
tree29b9421062cc8341dc10b6ca65e9a64802c3db71 /pyload/plugin/hoster/FileserveCom.py
parent.min.css -> .css (diff)
downloadpyload-ce103ce1e60661f7bcdf6a033335134de61d48b1.tar.xz
Prepare to merging
Diffstat (limited to 'pyload/plugin/hoster/FileserveCom.py')
-rw-r--r--pyload/plugin/hoster/FileserveCom.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/FileserveCom.py b/pyload/plugin/hoster/FileserveCom.py
index e3589445a..18322fa00 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.54"
+ __name__ = "FileserveCom"
+ __type__ = "hoster"
+ __version__ = "0.54"
- __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))
@@ -144,7 +144,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"))
@@ -184,7 +184,7 @@ class FileserveCom(Hoster):
def handlePremium(self, pyfile):
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,