diff options
author | Hadrien Theveneau <theveneau@gmail.com> | 2015-10-27 23:30:58 +0100 |
---|---|---|
committer | Hadrien Theveneau <theveneau@gmail.com> | 2015-10-28 02:53:35 +0100 |
commit | de25bfe52bd77ffca5496708583b2070f97a8513 (patch) | |
tree | fe2c020a04148129c18f34cfaf6f36a4215b2cfa /module/plugins/crypter/DlProtectCom.py | |
parent | Infinite redirect bug fixing in SimpleCrypter.py (diff) | |
download | pyload-de25bfe52bd77ffca5496708583b2070f97a8513.tar.xz |
Filter interesting urls from ads in DlProtectCom.py
Diffstat (limited to 'module/plugins/crypter/DlProtectCom.py')
-rw-r--r-- | module/plugins/crypter/DlProtectCom.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/crypter/DlProtectCom.py b/module/plugins/crypter/DlProtectCom.py index a3b24a1d6..10993d729 100644 --- a/module/plugins/crypter/DlProtectCom.py +++ b/module/plugins/crypter/DlProtectCom.py @@ -69,7 +69,8 @@ class DlProtectCom(SimpleCrypter): if errmsg in self.data: self.fail(_(errmsg[1:])) - return re.findall(r'<a href="([^/].+?)" target="_blank">', self.data) + # Filters interesting urls from ads + return re.findall(r'<a href="(?P<id>[^/].+?)" target="_blank">(?P=id)</a>', self.data) getInfo = create_getInfo(DlProtectCom) |