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 /module/Plugin.py | |
parent | Fixed file_exists function for local files (diff) | |
download | pyload-73ce2440528681c713085c2ffb1947718e9022c5.tar.xz |
Fixed normal hoster file_exists function
Diffstat (limited to 'module/Plugin.py')
-rw-r--r-- | module/Plugin.py | 3 |
1 files changed, 2 insertions, 1 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 |