diff options
author | Paul King <devnull@localhost> | 2011-05-04 21:13:52 +0200 |
---|---|---|
committer | Paul King <devnull@localhost> | 2011-05-04 21:13:52 +0200 |
commit | d138ad887aac7d3617e6f626259a492eecc4bc82 (patch) | |
tree | 4115cf87ed45aeafecca807a14f35451b5cc1056 /module/plugins/hoster/FilesonicCom.py | |
parent | new file states (temp. offline, skipped) (diff) | |
download | pyload-d138ad887aac7d3617e6f626259a492eecc4bc82.tar.xz |
FilesonicCom API fix, New hoster FilefactoryCom
Diffstat (limited to 'module/plugins/hoster/FilesonicCom.py')
-rw-r--r-- | module/plugins/hoster/FilesonicCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py index c3e3febb8..03bba3a64 100644 --- a/module/plugins/hoster/FilesonicCom.py +++ b/module/plugins/hoster/FilesonicCom.py @@ -30,8 +30,8 @@ def getInfo(urls): yield result
def getDomain():
- html = decode(getURL("http://api.filesonic.com/utility?method=getFilesonicDomainForCurrentIp"))
- return re.search(r"response>.*?filesonic(\..*?)</resp", html).group(1)
+ html = decode(getURL("http://api.filesonic.com/utility?method=getFilesonicDomainForCurrentIp&format=xml"))
+ return re.search(r"response>.*?(filesonic\..*?)</resp", html).group(1)
class FilesonicCom(Hoster):
__name__ = "FilesonicCom"
@@ -140,6 +140,8 @@ class FilesonicCom(Hoster): if chall:
self.invalidCaptcha()
+ else:
+ self.correctCaptcha()
re_url = re.search(realLinkRegexp, self.html)
if re_url:
|