summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-30 17:24:09 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-30 17:24:09 +0100
commitfe64575ff079037d0db827e9067d5a5f6dffb1dd (patch)
tree55e1b849623e0371cc0d6bf314c2e1327697e93b /module/plugins
parent[XFileSharingPro] Fix account init (diff)
downloadpyload-fe64575ff079037d0db827e9067d5a5f6dffb1dd.tar.xz
[SimpleCrypter] Fix cookies support
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SimpleCrypter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 1f41a7e5a..e586580d7 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -4,7 +4,6 @@ import re
from traceback import print_exc
-from module.network.RequestFactory import getURL
from module.plugins.Crypter import Crypter
from module.plugins.Plugin import Fail
from module.plugins.internal.SimpleHoster import _error, _wait, replace_patterns, set_cookies
@@ -14,7 +13,7 @@ from module.utils import fixup, html_unescape
class SimpleCrypter(Crypter):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.22"
+ __version__ = "0.23"
__pattern__ = None
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True), #: Overrides core.config['general']['folder_per_package']
@@ -94,7 +93,7 @@ class SimpleCrypter(Crypter):
set_cookies(self.req.cj, self.COOKIES)
self.pyfile.url = replace_patterns(self.pyfile.url, self.URL_REPLACEMENTS)
- self.html = getURL(self.pyfile.url, decode=not self.TEXT_ENCODING, cookies=bool(self.COOKIES))
+ self.html = self.load(self.pyfile.url, decode=not self.TEXT_ENCODING, cookies=bool(self.COOKIES))
def decrypt(self, pyfile):