From 9d8d8db40662aeeb8ebbc5e6934d39f84574dd80 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 14 Nov 2011 19:53:55 +0100 Subject: improved plugin loader, import hook to always use newest plugin versions --- module/plugins/hoster/MediafireCom.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'module/plugins/hoster/MediafireCom.py') 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 -- cgit v1.2.3