diff options
author | Jeix <devnull@localhost> | 2010-10-10 13:45:26 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-10-10 13:45:26 +0200 |
commit | 43418b6295beef9eed4a4629003adf02dd47f3e2 (patch) | |
tree | 04717e8e68468b286fe17e5529d6d6fc23d4e0e0 /module | |
parent | netload fix no. 2 (diff) | |
download | pyload-43418b6295beef9eed4a4629003adf02dd47f3e2.tar.xz |
workaround
Diffstat (limited to 'module')
-rw-r--r-- | module/network/FtpRequest.py | 15 | ||||
-rw-r--r-- | module/network/XdccRequest.py | 13 | ||||
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 2 |
3 files changed, 11 insertions, 19 deletions
diff --git a/module/network/FtpRequest.py b/module/network/FtpRequest.py index eecb40c9f..fb2e6246e 100644 --- a/module/network/FtpRequest.py +++ b/module/network/FtpRequest.py @@ -244,16 +244,11 @@ class FtpRequest: self.pycurl.close() except: pass - -# def getURL(url): - # """ - # currently used for update check - # """ - # req = Request() - # c = req.load(url) - # req.pycurl.close() - # return c - + + def clearCookies(self): + # workaround </3 + pass + if __name__ == "__main__": import doctest doctest.testmod() diff --git a/module/network/XdccRequest.py b/module/network/XdccRequest.py index 28aee262e..98e3e9f12 100644 --- a/module/network/XdccRequest.py +++ b/module/network/XdccRequest.py @@ -324,15 +324,10 @@ class XdccRequest: except:
pass
-# def getURL(url):
- # """
- # currently used for update check
- # """
- # req = Request()
- # c = req.load(url)
- # req.pycurl.close()
- # return c
-
+ def clearCookies(self):
+ # workaround </3
+ pass
+
if __name__ == "__main__":
import doctest
doctest.testmod()
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 9c54fa50a..77bc24182 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -95,6 +95,8 @@ class ShareonlineBiz(Hoster): self.retry() else: + if r"Die Nummer ist leider nicht richtig oder ausgelaufen!" in html: + self.retry() return True def convertURL(self): |