summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-06 04:35:01 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-06 04:35:01 +0100
commit0997d9f86b10cf8358c58d26150bbfa95e9c80b9 (patch)
tree67e2c35d7617f07186e5f763307bb38752be4769
parentCode cosmetics (diff)
downloadpyload-0997d9f86b10cf8358c58d26150bbfa95e9c80b9.tar.xz
[XFSCrypter] Fix a couple of patterns
-rw-r--r--module/plugins/internal/XFSCrypter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/XFSCrypter.py b/module/plugins/internal/XFSCrypter.py
index fb6f7fed3..1d5342137 100644
--- a/module/plugins/internal/XFSCrypter.py
+++ b/module/plugins/internal/XFSCrypter.py
@@ -6,7 +6,7 @@ from module.plugins.internal.SimpleCrypter import SimpleCrypter
class XFSCrypter(SimpleCrypter):
__name__ = "XFSCrypter"
__type__ = "crypter"
- __version__ = "0.03"
+ __version__ = "0.04"
__pattern__ = r'^unmatchable$'
@@ -18,12 +18,12 @@ class XFSCrypter(SimpleCrypter):
HOSTER_DOMAIN = None
HOSTER_NAME = None
- URL_REPLACEMENTS = [(r'[?/&]+$', r''), (r'(.+/[^?]*)$', r'\1?'), (r'$', r'&per_page=10000')]
+ URL_REPLACEMENTS = [(r'[?/&]+$', ""), (r'&?per_page=\d+', ""), (r'(.+/[^?]+)', r'\1\?'), (r'$', r'&per_page=10000')]
COOKIES = [(HOSTER_DOMAIN, "lang", "english")]
- LINK_PATTERN = r'<(?:td|TD) [^>]*>\s*<a href="(.+?)"[^>]*>.+?(?:</a>)?\s*</(?:td|TD)>'
- NAME_PATTERN = r'<[tT]itle>.*?\: (.+) folder</[tT]itle>'
+ LINK_PATTERN = r'<(?:td|TD).*?>\s*<a href="(.+?)".*?>.+?(?:</a>)?\s*</(?:td|TD)>'
+ NAME_PATTERN = r'<[tT]itle>.*?\: (?P<N>.+) folder</[tT]itle>'
OFFLINE_PATTERN = r'>\s*\w+ (Not Found|file (was|has been) removed)'
TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'