diff options
author | Arno-Nymous <Arno-Nymous@users.noreply.github.com> | 2016-01-21 14:07:04 +0100 |
---|---|---|
committer | Arno-Nymous <Arno-Nymous@users.noreply.github.com> | 2016-04-27 16:14:54 +0200 |
commit | 0d6b13201eab010ba0c0b07274cf8cd9f6694b7b (patch) | |
tree | f083a1d8de9298d06b892a46db51bb183326c6dd | |
parent | [MegaCoNzFolder] Fix minor bug (2) (diff) | |
download | pyload-0d6b13201eab010ba0c0b07274cf8cd9f6694b7b.tar.xz |
Few plugin changes
[ShareLinksBiz] Speed up link parsing by cascading through all available container types.
[Captcha.py] Change string formatting to `.format()` here as well. Also fixes an `TypeError`
occuring on line 106.
-rw-r--r-- | module/plugins/crypter/ShareLinksBiz.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/module/plugins/crypter/ShareLinksBiz.py b/module/plugins/crypter/ShareLinksBiz.py index fd9eb4124..a081d750e 100644 --- a/module/plugins/crypter/ShareLinksBiz.py +++ b/module/plugins/crypter/ShareLinksBiz.py @@ -53,9 +53,15 @@ class ShareLinksBiz(Crypter): #: Extract package links pack_links = [] - pack_links.extend(self.handle_web_links()) - pack_links.extend(self.handle_containers()) - pack_links.extend(self.handle_CNL2()) + for source in ['cnl', 'web', 'dlc']: + if source == 'cnl': + pack_links.extend(self.handle_CNL2()) + if source == 'web': + pack_links.extend(self.handle_web_links()) + if source == 'dlc': + pack_links.extend(self.handle_containers()) + if pack_links: + break pack_links = set(pack_links) #: Get package info |