diff options
Diffstat (limited to 'module')
-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 |