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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/YadiSk.py b/module/plugins/hoster/YadiSk.py
index a907cd282..354ba1b4c 100644
--- a/module/plugins/hoster/YadiSk.py
+++ b/module/plugins/hoster/YadiSk.py
@@ -34,7 +34,7 @@ class YadiSk(SimpleHoster):
info ['idclient'] += random.choice('0123456abcdef')
m = re.search(r'<script id="models-client" type="application/json">(.+?)</script>', html)
- if m:
+ if m is not None:
api_data = json_loads(m.group(1))
try:
for sect in api_data: