summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YadiSk.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/YadiSk.py')
-rw-r--r--module/plugins/hoster/YadiSk.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/hoster/YadiSk.py b/module/plugins/hoster/YadiSk.py
index 3b4c9d985..a907cd282 100644
--- a/module/plugins/hoster/YadiSk.py
+++ b/module/plugins/hoster/YadiSk.py
@@ -10,7 +10,8 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class YadiSk(SimpleHoster):
__name__ = "YadiSk"
__type__ = "hoster"
- __version__ = "0.05"
+ __version__ = "0.06"
+ __status__ = "testing"
__pattern__ = r'https?://yadi\.sk/d/[\w-]+'
@@ -23,8 +24,8 @@ class YadiSk(SimpleHoster):
@classmethod
- def getInfo(cls, url="", html=""):
- info = super(YadiSk, cls).getInfo(url, html)
+ def get_info(cls, url="", html=""):
+ info = super(YadiSk, cls).get_info(url, html)
if html:
if 'idclient' not in info:
@@ -59,12 +60,12 @@ class YadiSk(SimpleHoster):
def setup(self):
- self.resumeDownload = False
+ self.resume_download = False
self.multiDL = False
- self.chunkLimit = 1
+ self.chunk_limit = 1
- def handleFree(self, pyfile):
+ def handle_free(self, pyfile):
if any(True for _k in ['id', 'sk', 'version', 'idclient'] if _k not in self.info):
self.error(_("Missing JSON data"))