diff options
Diffstat (limited to 'module/plugins/hoster/FileserveCom.py')
-rw-r--r-- | module/plugins/hoster/FileserveCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py index 9ccc5df86..8e8341e54 100644 --- a/module/plugins/hoster/FileserveCom.py +++ b/module/plugins/hoster/FileserveCom.py @@ -32,7 +32,7 @@ def check_file(plugin, urls): class FileserveCom(Hoster): - __name__ = "FileserveCom" + __name = "FileserveCom" __type__ = "hoster" __version__ = "0.62" __status__ = "testing" @@ -63,7 +63,7 @@ class FileserveCom(Hoster): def setup(self): self.resume_download = 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.log_debug("File ID: %s URL: %s" % (self.file_id, self.url)) @@ -146,7 +146,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")) @@ -180,7 +180,7 @@ class FileserveCom(Hoster): def handle_premium(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.account.user, |