summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-30 22:24:20 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-30 22:24:20 +0100
commit851011df889369cac5e4c91928be7e1a498f9ab8 (patch)
tree7138701c93ef2514c47419342e3428d270091d53 /module/plugins/internal/SimpleCrypter.py
parentfixed import in ExternalScripts (diff)
parentTurbobitNet: fixed #421 (diff)
downloadpyload-851011df889369cac5e4c91928be7e1a498f9ab8.tar.xz
Merge branch 'stable' of github.com:pyload/pyload into stable
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py7
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()