diff options
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index f0fe0b764..78c7158bf 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -21,11 +21,12 @@ import re from module.plugins.Crypter import Crypter from module.utils import html_unescape +from module.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 decrypt(self, pyfile): + pyfile.url = replace_patterns(pyfile.url, self.FILE_URL_REPLACEMENTS) + self.html = self.load(pyfile.url, decode=True) package_name, folder_name = self.getPackageNameAndFolder() |