summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/DeadHoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/DeadHoster.py')
-rw-r--r--module/plugins/internal/DeadHoster.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/module/plugins/internal/DeadHoster.py b/module/plugins/internal/DeadHoster.py
index f159ae5fa..250287d25 100644
--- a/module/plugins/internal/DeadHoster.py
+++ b/module/plugins/internal/DeadHoster.py
@@ -1,31 +1,30 @@
# -*- coding: utf-8 -*-
-from module.plugins.internal.SimpleHoster import create_getInfo
-from module.plugins.Hoster import Hoster as _Hoster
+from module.plugins.internal.Hoster import Hoster, create_getInfo
-class DeadHoster(_Hoster):
+class DeadHoster(Hoster):
__name__ = "DeadHoster"
__type__ = "hoster"
- __version__ = "0.15"
+ __version__ = "0.19"
+ __status__ = "testing"
__pattern__ = r'^unmatchable$'
- __description__ = """ Hoster is no longer available """
+ __description__ = """Hoster is no longer available"""
__license__ = "GPLv3"
__authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
@classmethod
- def apiInfo(cls, url):
- api = super(DeadHoster, cls).apiInfo(url)
- api['status'] = 1
- return api
+ def get_info(cls, *args, **kwargs):
+ info = super(DeadHoster, cls).get_info(*args, **kwargs)
+ info['status'] = 1
+ return info
def setup(self):
- self.pyfile.error = "Hoster is no longer available"
- self.offline() #@TODO: self.offline("Hoster is no longer available")
+ self.offline(_("Hoster is no longer available"))
getInfo = create_getInfo(DeadHoster)