diff options
-rw-r--r-- | module/plugins/crypter/EasybytezComFolder.py | 4 | ||||
-rw-r--r-- | 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<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) |