diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-22 18:18:51 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-22 18:18:51 +0100 |
commit | df01de45ccd8456789510446c6a2c4aed1c8f96c (patch) | |
tree | 1f17522476f3443137133e8d24257eea9d82db53 | |
parent | parse category from addons (diff) | |
parent | incremented version number (diff) | |
download | pyload-df01de45ccd8456789510446c6a2c4aed1c8f96c.tar.xz |
Merge pull request #10 from 4Christopher/master
Fixed crypter HoerbuchIn to match all URLs.
-rw-r--r-- | module/plugins/crypter/HoerbuchIn.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/crypter/HoerbuchIn.py b/module/plugins/crypter/HoerbuchIn.py index 4c26ba7f7..6f23b2eb9 100644 --- a/module/plugins/crypter/HoerbuchIn.py +++ b/module/plugins/crypter/HoerbuchIn.py @@ -10,7 +10,7 @@ class HoerbuchIn(Crypter): __name__ = "HoerbuchIn" __type__ = "container" __pattern__ = r"http://(www\.)?hoerbuch\.in/(wp/horbucher/\d+/.+/|tp/out.php\?.+|protection/folder_\d+\.html)" - __version__ = "0.6" + __version__ = "0.7" __description__ = """Hoerbuch.in Container Plugin""" __author_name__ = ("spoob", "mkaay") __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de") @@ -46,10 +46,10 @@ 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) links.append(self.req.lastEffectiveURL) return links |