diff options
| author | 2015-02-16 10:46:28 +0100 | |
|---|---|---|
| committer | 2015-02-16 10:46:28 +0100 | |
| commit | ce1c2b6b05c08b669357947e61ae40efce7fc50f (patch) | |
| tree | 0b5f7996960cf35c4eface53a89eba18a37519b7 /pyload/plugin/hoster/NosuploadCom.py | |
| parent | Fix filename case (diff) | |
| download | pyload-ce1c2b6b05c08b669357947e61ae40efce7fc50f.tar.xz | |
module temp
Diffstat (limited to 'pyload/plugin/hoster/NosuploadCom.py')
| -rw-r--r-- | pyload/plugin/hoster/NosuploadCom.py | 43 | 
1 files changed, 0 insertions, 43 deletions
diff --git a/pyload/plugin/hoster/NosuploadCom.py b/pyload/plugin/hoster/NosuploadCom.py deleted file mode 100644 index 56f70208d..000000000 --- a/pyload/plugin/hoster/NosuploadCom.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from pyload.plugin.internal.XFSHoster import XFSHoster, create_getInfo - - -class NosuploadCom(XFSHoster): -    __name__    = "NosuploadCom" -    __type__    = "hoster" -    __version__ = "0.31" - -    __pattern__ = r'http://(?:www\.)?nosupload\.com/\?d=\w{12}' - -    __description__ = """Nosupload.com hoster plugin""" -    __license__     = "GPLv3" -    __authors__     = [("igel", "igelkun@myopera.com")] - - -    HOSTER_DOMAIN = "nosupload.com" - -    SIZE_PATTERN = r'<p><strong>Size:</strong> (?P<S>[\d.,]+) (?P<U>[\w^_]+)</p>' -    LINK_PATTERN = r'<a class="select" href="(http://.+?)">Download</a>' -    WAIT_PATTERN = r'Please wait.*?>(\d+)</span>' - - -    def getDownloadLink(self): -        # stage1: press the "Free Download" button -        data = self.getPostParameters() -        self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True) - -        # stage2: wait some time and press the "Download File" button -        data = self.getPostParameters() -        wait_time = re.search(self.WAIT_PATTERN, self.html, re.M | re.S).group(1) -        self.logDebug("Hoster told us to wait %s seconds" % wait_time) -        self.wait(wait_time) -        self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True) - -        # stage3: get the download link -        return re.search(self.LINK_PATTERN, self.html, re.S).group(1) - - -getInfo = create_getInfo(NosuploadCom)  | 
