From d9ebc9ebf02d4315d105ce05d323adbeba0fad61 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 23 Nov 2013 18:05:46 +0100 Subject: Crypter: EasybytezComFolder: Fixed (thx stickell) --- module/plugins/crypter/EasybytezComFolder.py | 4 ++-- module/plugins/internal/SimpleCrypter.py | 2 +- 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\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")] LINK_PATTERN = r'' TITLE_PATTERN = r'Files of \d+: (?P<title>.+) folder' 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) -- cgit v1.2.3