diff options
| author | 2015-08-09 00:50:54 +0200 | |
|---|---|---|
| committer | 2015-08-09 00:50:54 +0200 | |
| commit | b0ef3f1673e1930916604bb1264ca3a38414bc8d (patch) | |
| tree | c97936e4d2a4cd6eb1072c65c8a08a7d18816b18 /module/plugins/hoster/OpenloadIo.py | |
| parent | [XFileSharingPro][XFileSharingProFolder] Added default __pattern__ (diff) | |
| parent | Fix https://github.com/pyload/pyload/issues/1707 (diff) | |
| download | pyload-b0ef3f1673e1930916604bb1264ca3a38414bc8d.tar.xz | |
Merge pull request #1 from pyload/stable
sync with stable
Diffstat (limited to 'module/plugins/hoster/OpenloadIo.py')
| -rw-r--r-- | module/plugins/hoster/OpenloadIo.py | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/module/plugins/hoster/OpenloadIo.py b/module/plugins/hoster/OpenloadIo.py index c31b5b997..c46462344 100644 --- a/module/plugins/hoster/OpenloadIo.py +++ b/module/plugins/hoster/OpenloadIo.py @@ -6,21 +6,26 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class OpenloadIo(SimpleHoster):      __name__    = "OpenloadIo"      __type__    = "hoster" -    __version__ = "0.01" +    __version__ = "0.04" +    __status__  = "testing" -    __pattern__ = r'https?://(?:www\.)?openload\.io/f/\w{11}' +    __pattern__ = r'https?://(?:www\.)?openload\.io/f/[\w_-]{11}'      __description__ = """Openload.io hoster plugin"""      __license__     = "GPLv3" +    __authors__     = [(None, None)] -    NAME_PATTERN = r'<span id="filename">(?P<N>.+)</' -    SIZE_PATTERN = r'<span class="count">(?P<S>[\d.,]+) (?P<U>[\w^_]+)<' + +    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/.*?)"' +    LINK_FREE_PATTERN = r'id="real\w*download"><a href="(https?://[\w\.]+\.openload\.io/dl/.*?)"' +      def setup(self):          self.multiDL = True -        self.chunkLimit = 1 +        self.chunk_limit = 1 +  getInfo = create_getInfo(OpenloadIo) | 
