diff options
Diffstat (limited to 'Plugins')
-rw-r--r-- | Plugins/RapidshareCom.py | 5 | ||||
-rw-r--r-- | Plugins/UploadedTo.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index 35555eeb1..bbbcbebd1 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -132,7 +132,10 @@ class RapidshareCom(Plugin): self.download_serverhtml() if not self.want_reconnect: - file_url_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" + if self.config['server'] == "": + file_url_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" + else: + file_url_pattern = '(http://rs.*)\';" /> %s<br />' % self.config['server'] return re.search(file_url_pattern, self.html[1]).group(1) else: print self.html[1] #test print diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py index f1e7d8ae3..7f30a0519 100644 --- a/Plugins/UploadedTo.py +++ b/Plugins/UploadedTo.py @@ -12,7 +12,7 @@ class UploadedTo(Plugin): props = {} props['name'] = "UploadedTo" props['type'] = "hoster" - props['pattern'] = r"http://(www\.)?uploaded.to/" + props['pattern'] = r"http://(?:www\.)?u(?:p)?l(?:oaded)?\.to/" props['version'] = "0.1" props['description'] = """Uploaded.to Download Plugin""" props['author_name'] = ("spoob") |