summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilesMailRu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-18 20:04:36 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-18 20:04:36 +0200
commit9e5d813d7721e351ac02ba72bdc473a7d77ba6b7 (patch)
tree1a5167cea6492283bfb679c4efdb4c13534d844f /module/plugins/hoster/FilesMailRu.py
parentReorder some functions (diff)
downloadpyload-9e5d813d7721e351ac02ba72bdc473a7d77ba6b7.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilesMailRu.py')
-rw-r--r--module/plugins/hoster/FilesMailRu.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hoster/FilesMailRu.py b/module/plugins/hoster/FilesMailRu.py
index 71ef231b1..df6b8a2ad 100644
--- a/module/plugins/hoster/FilesMailRu.py
+++ b/module/plugins/hoster/FilesMailRu.py
@@ -2,7 +2,7 @@
import re
-from module.network.RequestFactory import getURL
+from module.network.RequestFactory import getURL as get_url
from module.plugins.internal.Hoster import Hoster
from module.plugins.internal.Plugin import chunks
@@ -11,7 +11,7 @@ def get_info(urls):
result = []
for chunk in chunks(urls, 10):
for url in chunk:
- html = getURL(url)
+ html = get_url(url)
if r'<div class="errorMessage mb10">' in html:
result.append((url, 0, 1, url))
elif r'Page cannot be displayed' in html:
@@ -73,8 +73,7 @@ class FilesMailRu(Hoster):
"""
You have to wait some seconds. Otherwise you will get a 40Byte HTML Page instead of the file you expected
"""
- self.set_wait(10)
- self.wait()
+ self.wait(10)
return True