summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-11-23 18:05:46 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2013-11-23 18:06:02 +0100
commitd9ebc9ebf02d4315d105ce05d323adbeba0fad61 (patch)
tree57f5cbee1a82e6071a4db4bd545786759a0f6eb9
parentCrypter: EasybytezComFolder: Fixed bad url processing (result in SimpleCrypte... (diff)
downloadpyload-d9ebc9ebf02d4315d105ce05d323adbeba0fad61.tar.xz
Crypter: EasybytezComFolder: Fixed (thx stickell)
-rw-r--r--module/plugins/crypter/EasybytezComFolder.py4
-rw-r--r--module/plugins/internal/SimpleCrypter.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/EasybytezComFolder.py b/module/plugins/crypter/EasybytezComFolder.py
index cfd52545e..b9cf240a0 100644
--- a/module/plugins/crypter/EasybytezComFolder.py
+++ b/module/plugins/crypter/EasybytezComFolder.py
@@ -21,13 +21,13 @@ from module.plugins.internal.SimpleCrypter import SimpleCrypter
class EasybytezComFolder(SimpleCrypter):
__name__ = "EasybytezComFolder"
__type__ = "crypter"
- __pattern__ = r"https?://(?:www\.)?easybytez\.com/users/\d+/\d+"
+ __pattern__ = r"http://(?:www\.)?easybytez\.com/users/(?P<ID>\d+/\d+)"
__version__ = "0.04"
__description__ = """Easybytez Crypter Plugin"""
__author_name__ = ("stickell")
__author_mail__ = ("l.stickell@yahoo.it")
- FILE_URL_REPLACEMENTS = [__pattern__]
+ FILE_URL_REPLACEMENTS = [(__pattern__, r"http://www.easybytez.com/users/\g<ID>")]
LINK_PATTERN = r'<div class="link"><a href="(http://www\.easybytez\.com/\w+)" target="_blank">.+</a></div>'
TITLE_PATTERN = r'<Title>Files of \d+: (?P<title>.+) folder</Title>'
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index d0b36bb6c..78c7158bf 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -53,7 +53,7 @@ class SimpleCrypter(Crypter):
must return the html of the page number 'page_n'
"""
- FILE_SIZE_REPLACEMENTS = []
+ FILE_URL_REPLACEMENTS = []
def decrypt(self, pyfile):
pyfile.url = replace_patterns(pyfile.url, self.FILE_URL_REPLACEMENTS)