summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-06-01 23:00:21 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-06-01 23:00:21 +0200
commit109b33f5c6648563943e8461be64111d06196f94 (patch)
tree208a0c5ca7702b45ebf97b35645a46a794e9c22f /module
parentUpdate Dereferer.py (diff)
downloadpyload-109b33f5c6648563943e8461be64111d06196f94.tar.xz
Update SimpleCrypter.py
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/SimpleCrypter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 2d4d52f3c..8a37839b5 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -11,7 +11,7 @@ from module.utils import fixup, html_unescape
class SimpleCrypter(Crypter, SimpleHoster):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.47"
+ __version__ = "0.48"
__pattern__ = r'^unmatchable$'
__config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), #: Overrides core.config['general']['folder_per_package']
@@ -101,7 +101,7 @@ class SimpleCrypter(Crypter, SimpleHoster):
def handleDirect(self, pyfile):
while True:
- header = self.load(self.link or pyfile.url, just_header=True, decode=True)
+ header = self.load(self.link if hasattr(self, 'link') and self.link else pyfile.url, just_header=True, decode=True)
if 'location' in header and header['location']:
self.link = header['location']
else:
@@ -114,7 +114,7 @@ class SimpleCrypter(Crypter, SimpleHoster):
self.logDebug("Looking for link redirect...")
self.handleDirect(pyfile)
- if self.link:
+ if hasattr(self, 'link') and self.link:
self.urls = [self.link]
else: