diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-14 19:53:55 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-14 19:53:55 +0100 |
commit | 9d8d8db40662aeeb8ebbc5e6934d39f84574dd80 (patch) | |
tree | cff8ab2e9c20cd8a4b27b42b704c75377d343fd6 /module/plugins/hoster/MediafireCom.py | |
parent | rehost,to timeout fix (diff) | |
download | pyload-9d8d8db40662aeeb8ebbc5e6934d39f84574dd80.tar.xz |
improved plugin loader, import hook to always use newest plugin versions
Diffstat (limited to 'module/plugins/hoster/MediafireCom.py')
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 17 |
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 |