Commits

godofdream committed 5ecf772

Fixed c1neonCom plugin

Comments (0)

Files changed (1)

module/plugins/crypter/C1neonCom.py

     __name__ = "C1neonCom"
     __type__ = "container"
     __pattern__ = r"http://(www\.)?c1neon.com/.*?"
-    __version__ = "0.04"
+    __version__ = "0.05"
     __config__ = [
         ("changeNameS", "Packagename;Show;Season;Episode", "Rename Show by", "Show"),
         ("changeName", "Packagename;Movie", "Rename Movie by", "Movie"),
     #selects only one Hoster
     def getpreferred(self, hosterslist):
         hosterlist = {}
-        if hosterslist['u'] is not None:
+        if 'u' in hosterslist:
             hosterlist.update(hosterslist['u'])
-        if (hosterslist['d'] is not None):
+        if ('d' in hosterslist):
             hosterlist.update(hosterslist['d'])
-        if self.getConfig("useStreams") and hosterslist['s'] is not None:
+        if self.getConfig("useStreams") and 's' in hosterslist:
             hosterlist.update(hosterslist['s'])
         
         result = []