From 40b471123f3231c37f180f477a156ab487f8d8d3 Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 25 Nov 2013 03:25:10 -0800 Subject: Merge pull request #412 from vuolter/s/crypter/EasybytezComFolder EasybytezComFolder: Fixed bad url processing (result in SimpleCrypter update) (cherry picked from commit f6477822031ff1c6fffa30d62461eba3e5f1db35) Conflicts: pyload/plugins/internal/SimpleCrypter.py --- pyload/plugins/internal/SimpleCrypter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyload/plugins/internal/SimpleCrypter.py') diff --git a/pyload/plugins/internal/SimpleCrypter.py b/pyload/plugins/internal/SimpleCrypter.py index d8132f4b3..9eb80850d 100644 --- a/pyload/plugins/internal/SimpleCrypter.py +++ b/pyload/plugins/internal/SimpleCrypter.py @@ -21,11 +21,12 @@ import re from pyload.plugins.Crypter import Crypter, Package from pyload.utils import html_unescape +from pyload.plugins.internal.SimpleHoster import replace_patterns class SimpleCrypter(Crypter): __name__ = "SimpleCrypter" - __version__ = "0.06" + __version__ = "0.07" __pattern__ = None __type__ = "crypter" __description__ = """Base crypter plugin""" @@ -52,7 +53,11 @@ class SimpleCrypter(Crypter): must return the html of the page number 'page_n' """ + FILE_URL_REPLACEMENTS = [] + def decryptURL(self, url): + url = replace_patterns(url, self.FILE_URL_REPLACEMENTS) + self.html = self.load(url, decode=True) package_name = self.getPackageName() -- cgit v1.2.3