diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-04-27 17:16:12 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-04-27 17:16:12 +0200 |
commit | 0a9dbea21a66979113c0f8a0f308e93df27d9397 (patch) | |
tree | f083a1d8de9298d06b892a46db51bb183326c6dd | |
parent | [MegaCoNzFolder] Fix minor bug (2) (diff) | |
parent | Few plugin changes (diff) | |
download | pyload-0a9dbea21a66979113c0f8a0f308e93df27d9397.tar.xz |
Merge pull request #2439 from Arno-Nymous/sharelinksbiz-160427
Few plugin changes
-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 |