summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MediafireCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/MediafireCom.py')
-rw-r--r--module/plugins/hoster/MediafireCom.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py
index 15fc9f3c6..e499a406f 100644
--- a/module/plugins/hoster/MediafireCom.py
+++ b/module/plugins/hoster/MediafireCom.py
@@ -17,19 +17,9 @@
"""
import re
-from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo
-from module.network.RequestFactory import getURL
+from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
from module.plugins.ReCaptcha import ReCaptcha
-def getInfo(urls):
- result = []
-
- for url in urls:
- file_info = parseFileInfo(MediafireCom, url, getURL(url, decode=True))
- result.append(file_info)
-
- yield result
-
def replace_eval(js_expr):
return js_expr.replace(r'eval("', '').replace(r"\'", r"'").replace(r'\"', r'"')
@@ -125,4 +115,7 @@ class MediafireCom(SimpleHoster):
self.fail("Final link not found")
self.logDebug("FINAL LINK: %s" % final_link)
- self.download(final_link) \ No newline at end of file
+ self.download(final_link)
+
+
+getInfo = create_getInfo(MediafireCom) \ No newline at end of file