From 9fd7aff150ae1dbece0dbc7aed31b4e380145f7c Mon Sep 17 00:00:00 2001 From: godofdream Date: Tue, 7 Aug 2012 20:59:46 +0200 Subject: updates c1neonCom decrypter --- module/plugins/crypter/C1neonCom.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'module') diff --git a/module/plugins/crypter/C1neonCom.py b/module/plugins/crypter/C1neonCom.py index 1a0c3c90f..ad7f49795 100644 --- a/module/plugins/crypter/C1neonCom.py +++ b/module/plugins/crypter/C1neonCom.py @@ -24,7 +24,7 @@ class C1neonCom(Crypter): __name__ = "C1neonCom" __type__ = "container" __pattern__ = r"http://(www\.)?c1neon.com/.*?" - __version__ = "0.03" + __version__ = "0.04" __config__ = [ ("changeNameS", "Packagename;Show;Season;Episode", "Rename Show by", "Show"), ("changeName", "Packagename;Movie", "Rename Movie by", "Movie"), @@ -99,12 +99,13 @@ class C1neonCom(Crypter): #selects the preferred hoster, after that selects any hoster (ignoring the one to ignore) #selects only one Hoster def getpreferred(self, hosterslist): + hosterlist = {} if hosterslist['u'] is not None: - hosterlist = hosterslist['u'] - if hosterslist['d'] is not None: - hosterlist.append(hosterslist['d']) + hosterlist.update(hosterslist['u']) + if (hosterslist['d'] is not None): + hosterlist.update(hosterslist['d']) if self.getConfig("useStreams") and hosterslist['s'] is not None: - hosterlist.append(hosterslist['s']) + hosterlist.update(hosterslist['s']) result = [] preferredList = self.getConfig("hosterList").strip().lower().replace('|',',').replace('.','').replace(';',',').split(',') -- cgit v1.2.3