diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-10 23:16:26 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-10 23:16:26 +0100 |
commit | 7c50993e16a6adaa4bdb5f615c9e6cf279c16316 (patch) | |
tree | 3f247b49435bc383c24f649f1d34a0ad98096ece /module/plugins | |
parent | better uploaded pattern (diff) | |
download | pyload-7c50993e16a6adaa4bdb5f615c9e6cf279c16316.tar.xz |
fixed regex for uploaded.to
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/RapidshareCom.py | 4 | ||||
-rw-r--r-- | module/plugins/UploadedTo.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py index 63570c566..5044c2e00 100644 --- a/module/plugins/RapidshareCom.py +++ b/module/plugins/RapidshareCom.py @@ -82,8 +82,8 @@ class RapidshareCom(Plugin): api_param = {"sub": "checkfiles_v1", "files": "", "filenames": "", "incmd5": "1"} m = re.compile(self.props['pattern']).search(url) if m: - api_param["files"] = m.group(3) - api_param["filenames"] = m.group(4) + api_param["files"] = m.group(1) + api_param["filenames"] = m.group(2) src = self.req.load(api_url_base, cookies=False, get=api_param) if not src.find("ERROR"): return diff --git a/module/plugins/UploadedTo.py b/module/plugins/UploadedTo.py index f8bf87d6e..9ae008480 100644 --- a/module/plugins/UploadedTo.py +++ b/module/plugins/UploadedTo.py @@ -77,7 +77,7 @@ class UploadedTo(Plugin): url = self.parent.url match = re.compile(self.props['pattern']).search(url) if match: - src = self.req.load("http://uploaded.to/api/file", cookies=False, get={"id": match.group(1).split("?")[0]}) + src = self.req.load("http://uploaded.to/api/file", cookies=False, get={"id": match.group(1).split("/")[0]}) if not src.find("404 Not Found"): return self.api_data = {} |