diff options
Diffstat (limited to 'module/plugins/hoster/YadiSk.py')
-rw-r--r-- | module/plugins/hoster/YadiSk.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/YadiSk.py b/module/plugins/hoster/YadiSk.py index 4e582219d..579046caf 100644 --- a/module/plugins/hoster/YadiSk.py +++ b/module/plugins/hoster/YadiSk.py @@ -3,14 +3,14 @@ import re import random -from module.common.json_layer import json_loads +from module.plugins.internal.utils import json from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class YadiSk(SimpleHoster): __name__ = "YadiSk" __type__ = "hoster" - __version__ = "0.06" + __version__ = "0.07" __status__ = "testing" __pattern__ = r'https?://yadi\.sk/d/[\w\-]+' @@ -36,7 +36,7 @@ class YadiSk(SimpleHoster): m = re.search(r'<script id="models-client" type="application/json">(.+?)</script>', html) if m is not None: - api_data = json_loads(m.group(1)) + api_data = json.loads(m.group(1)) try: for sect in api_data: if 'model' in sect: @@ -80,7 +80,7 @@ class YadiSk(SimpleHoster): 'sk' : self.info['sk'], 'id.0' : self.info['id']}) - self.link = json_loads(self.html)['models'][0]['data']['file'] + self.link = json.loads(self.html)['models'][0]['data']['file'] except Exception: pass |