diff options
author | spoob <spoob@gmx.de> | 2009-12-19 22:23:29 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-12-19 22:23:29 +0100 |
commit | 73ce2440528681c713085c2ffb1947718e9022c5 (patch) | |
tree | 910e36b4fd62f0e111d66ec705da24257fe7047b | |
parent | Fixed file_exists function for local files (diff) | |
download | pyload-73ce2440528681c713085c2ffb1947718e9022c5.tar.xz |
Fixed normal hoster file_exists function
-rw-r--r-- | module/Plugin.py | 3 | ||||
-rw-r--r-- | module/plugins/DLC.pyc | bin | 5829 -> 5663 bytes | |||
-rw-r--r-- | module/plugins/LinkList.py | 10 | ||||
-rw-r--r-- | module/plugins/RapidshareCom.py | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/module/Plugin.py b/module/Plugin.py index 8e5bbcfe8..3285ae8dd 100644 --- a/module/Plugin.py +++ b/module/Plugin.py @@ -84,7 +84,8 @@ class Plugin(): """ if re.search(r"(?!http://).*\.(dlc|ccf|rsdf|txt)", self.parent.url): return exists(self.parent.url) - elif re.search(r"Not Found", self.parent.url): + header = self.req.load(self.parent.url, just_header=True) + if re.search(r"HTTP/1.1 404 Not Found", header): return False return True diff --git a/module/plugins/DLC.pyc b/module/plugins/DLC.pyc Binary files differindex 879e679fc..93d2bec7f 100644 --- a/module/plugins/DLC.pyc +++ b/module/plugins/DLC.pyc diff --git a/module/plugins/LinkList.py b/module/plugins/LinkList.py index 92508ce29..fc737e8c5 100644 --- a/module/plugins/LinkList.py +++ b/module/plugins/LinkList.py @@ -29,11 +29,11 @@ class LinkList(Plugin): if link != "\n": tmpLinks.append(link.replace("\n", "")) txt.close() - - if not self.parent.core.config['general']['debug_mode']: - txt = open(linkList, 'w') - txt.write("") - txt.close() +#~ + #~ if not self.parent.core.config['general']['debug_mode']: + #~ txt = open(linkList, 'w') + #~ txt.write("") + #~ txt.close() #@TODO: maybe delete read txt file? self.links = tmpLinks diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py index 2ce9a2f6f..973e28470 100644 --- a/module/plugins/RapidshareCom.py +++ b/module/plugins/RapidshareCom.py @@ -42,7 +42,7 @@ class RapidshareCom(Plugin): self.download_api_data() if self.api_data["status"] == "1": - pyfile.status.filename = self.api_data["filename"] + pyfile.status.filename = self.get_file_name() if self.config["premium"]: self.logger.info("Rapidshare: Use Premium Account (%sGB left)" % (self.props["premkbleft"]/1000000)) |