diff options
author | Stefano <l.stickell@yahoo.it> | 2013-11-25 12:25:10 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-11-25 12:25:10 +0100 |
commit | f6477822031ff1c6fffa30d62461eba3e5f1db35 (patch) | |
tree | 6e819d7e6102ac0a611a2193f5d56a8e3fc407d3 /module/plugins/internal | |
parent | Merge pull request #335 from vuolter/s/crypter/YoutubeBatch (diff) | |
parent | Crypter: EasybytezComFolder: Fixed (thx stickell) (diff) | |
download | pyload-f6477822031ff1c6fffa30d62461eba3e5f1db35.tar.xz |
Merge pull request #412 from vuolter/s/crypter/EasybytezComFolder
EasybytezComFolder: Fixed bad url processing (result in SimpleCrypter update)
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() |