diff options
author | mkaay <mkaay@mkaay.de> | 2011-01-26 22:08:06 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-01-26 22:08:06 +0100 |
commit | 025f18b8499f02a09bb747d5dac7b3455d660162 (patch) | |
tree | 71d426b9c71af6575fe70a44fa286b398bc79874 /module/plugins/crypter | |
parent | new l18n files (diff) | |
download | pyload-025f18b8499f02a09bb747d5dac7b3455d660162.tar.xz |
fixed sj.org
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 4510d7e7f..193f6b417 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -32,6 +32,7 @@ class SerienjunkiesOrg(Crypter): "df": "DepositfilesCom", "es": "EasyshareCom", "kl": "KickloadCom", + "fc": "FilesonicCom", } self.hosterMapReverse = dict((v,k) for k, v in self.hosterMap.iteritems()) @@ -45,6 +46,13 @@ class SerienjunkiesOrg(Crypter): src = self.req.load(str(url)) return src + def handleShow(self, url): + src = self.getSJSrc(url) + soup = BeautifulSoup(src) + nav = soup.find("div", attrs={"id": "scb"}) + for a in nav.findAll("a"): + self.packages.append((unescape(a.text), [a["href"]], unescape(a.text))) + def handleSeason(self, url): src = self.getSJSrc(url) soup = BeautifulSoup(src) @@ -182,6 +190,6 @@ class SerienjunkiesOrg(Crypter): elif oldStyleLink.match(url): self.handleOldStyleLink(url) elif showPattern.match(url): - pass + self.handleShow(url) elif seasonPattern.match(url): self.handleSeason(url) |