diff options
author | godofdream <soilfiction@gmail.com> | 2012-10-03 19:00:25 +0200 |
---|---|---|
committer | godofdream <soilfiction@gmail.com> | 2012-10-03 19:00:25 +0200 |
commit | 611034705079e9c0e432efbabbadb5a9292a383f (patch) | |
tree | 18a2c0ea40a0582a81924cb2fd6550ad996e6735 /module/plugins/crypter | |
parent | update czshare, little fixes (diff) | |
download | pyload-611034705079e9c0e432efbabbadb5a9292a383f.tar.xz |
Fix DuckcryptInfo and NowDownloadEu
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/DuckCryptInfo.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py index 6e7166ff8..4886d24db 100644 --- a/module/plugins/crypter/DuckCryptInfo.py +++ b/module/plugins/crypter/DuckCryptInfo.py @@ -8,7 +8,7 @@ class DuckCryptInfo(Crypter): __name__ = "DuckCryptInfo" __type__ = "container" __pattern__ = r"http://(?:www\.)?duckcrypt.info/(folder|wait|link)/(\w+)/?(\w*)" - __version__ = "0.01" + __version__ = "0.02" __description__ = """DuckCrypt.Info Container Plugin""" __author_name__ = ("godofdream") __author_mail__ = ("soilfiction@gmail.com") @@ -39,12 +39,13 @@ class DuckCryptInfo(Crypter): self.logDebug("Redirectet to " + str(found.group(0))) src = self.load(str(found.group(0))) soup = BeautifulSoup(src) - cryptlinks = soup.find("div", attrs={"class": "folderbox"}).findAll("a") + cryptlinks = soup.findAll("div", attrs={"class": "folderbox"}) self.logDebug("Redirectet to " + str(cryptlinks)) if not cryptlinks: self.fail('no links found - (Plugin out of date?)') for clink in cryptlinks: - self.handleLink(clink['href']) + if clink.find("a"): + self.handleLink(clink.find("a")['href']) def handleLink(self, url): src = self.load(url) |