summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christopher <4Christopher@gmx.de> 2013-02-21 21:33:09 +0100
committerGravatar Christopher <4Christopher@gmx.de> 2013-02-21 21:33:09 +0100
commitf972fe6894fecb29cca022813db95764d05d0114 (patch)
tree4218054ebf916eb391451e8d8947097c5bc57e51
parentparse category from addons (diff)
downloadpyload-f972fe6894fecb29cca022813db95764d05d0114.tar.xz
Fixed crypter HoerbuchIn to match all URLs.
I know that the regular expression is not perfect but it worked very reliable.
-rw-r--r--module/plugins/crypter/HoerbuchIn.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/crypter/HoerbuchIn.py b/module/plugins/crypter/HoerbuchIn.py
index 4c26ba7f7..860f80152 100644
--- a/module/plugins/crypter/HoerbuchIn.py
+++ b/module/plugins/crypter/HoerbuchIn.py
@@ -46,10 +46,11 @@ class HoerbuchIn(Crypter):
src = self.req.load(url, post={"viewed": "adpg"})
links = []
- pattern = re.compile("http://www\.hoerbuch\.in/protection/(\w+)/(.*?)\"")
- for hoster, lid in pattern.findall(src):
+ pattern = re.compile(r'<div class="container"><a href="(.*?)"')
+ for hoster_url in pattern.findall(src):
self.req.lastURL = url
- self.load("http://www.hoerbuch.in/protection/%s/%s" % (hoster, lid))
+ self.load(hoster_url)
+ self.logInfo("2 %s, %s" % (hoster_url, self.req.lastEffectiveURL))
links.append(self.req.lastEffectiveURL)
return links