diff options
author | Stefano <l.stickell@yahoo.it> | 2013-03-08 14:24:10 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-03-08 14:24:10 +0100 |
commit | 2f3212b3665615431ea4fc62b57fec3e47bc3cbb (patch) | |
tree | f52fa57055bbc15626b4416521d075412ca75911 /module/plugins/hoster | |
parent | Added support for UploadedTo folders (diff) | |
download | pyload-2f3212b3665615431ea4fc62b57fec3e47bc3cbb.tar.xz |
UploadedTo: fixed plugin crash
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index d729e73c6..a2134ecb5 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -73,11 +73,11 @@ def getInfo(urls): class UploadedTo(Hoster): __name__ = "UploadedTo" __type__ = "hoster" - __pattern__ = r"http://[\w\.-]*?(uploaded\.(to|net)(/file/|/?\?id=|.*?&id=)|ul\.to/)\w+" - __version__ = "0.63" + __pattern__ = r"http://[\w\.-]*?(uploaded\.(to|net)(/file/|/?\?id=|.*?&id=)|ul\.to/)\w+" + __version__ = "0.64" __description__ = """Uploaded.net Download Hoster""" - __author_name__ = ("spoob", "mkaay", "zoidberg", "netpok") - __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "zoidberg@mujmail.cz", "netpok@gmail.com") + __author_name__ = ("spoob", "mkaay", "zoidberg", "netpok", "stickell") + __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "zoidberg@mujmail.cz", "netpok@gmail.com", "l.stickell@yahoo.it") FILE_INFO_PATTERN = r'<a href="file/(?P<ID>\w+)" id="filename">(?P<N>[^<]+)</a> \s*<small[^>]*>(?P<S>[^<]+)</small>' FILE_OFFLINE_PATTERN = r'<small class="cL">Error: 404</small>' @@ -99,8 +99,7 @@ class UploadedTo(Hoster): self.pyfile.url = "http://uploaded.net/file/%s" % self.fileID def process(self, pyfile): - self.req.cj.setCookie("uploaded.net", "lang", "en") # doesn't work anymore - self.load("http://uploaded.net/language/en") + self.load("http://uploaded.net/language/en", just_header=True) api = getAPIData([pyfile.url]) @@ -165,7 +164,7 @@ class UploadedTo(Hoster): def handleFree(self): self.html = self.load(self.pyfile.url, decode=True) - + if 'var free_enabled = false;' in self.html: self.logError("Free-download capacities exhausted.") self.retry(24, 300) |