diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-08 00:48:21 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-08 00:48:21 +0200 |
commit | 8564174098e64b0413a4956313eb100bab2c7d35 (patch) | |
tree | 970d11a6c5317a10945a3fb3faf933ba206e2e66 | |
parent | [LinkdecrypterComHook] Fix https://github.com/pyload/pyload/issues/1397 (diff) | |
parent | Add Openload.io hoster plugin. (diff) | |
download | pyload-8564174098e64b0413a4956313eb100bab2c7d35.tar.xz |
Merge pull request #1400 from lpiter/openloadio
Add Openload.io hoster plugin.
-rw-r--r-- | module/plugins/hoster/OpenloadIo.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/module/plugins/hoster/OpenloadIo.py b/module/plugins/hoster/OpenloadIo.py new file mode 100644 index 000000000..c31b5b997 --- /dev/null +++ b/module/plugins/hoster/OpenloadIo.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo + + +class OpenloadIo(SimpleHoster): + __name__ = "OpenloadIo" + __type__ = "hoster" + __version__ = "0.01" + + __pattern__ = r'https?://(?:www\.)?openload\.io/f/\w{11}' + + __description__ = """Openload.io hoster plugin""" + __license__ = "GPLv3" + + NAME_PATTERN = r'<span id="filename">(?P<N>.+)</' + SIZE_PATTERN = r'<span class="count">(?P<S>[\d.,]+) (?P<U>[\w^_]+)<' + OFFLINE_PATTERN = r">(We can't find the file you are looking for)" + + LINK_FREE_PATTERN = r'id="realdownload"><a href="(https?://[\w\.]+\.openload\.io/dl/.*?)"' + + def setup(self): + self.multiDL = True + self.chunkLimit = 1 + +getInfo = create_getInfo(OpenloadIo) |