示例#1
0
 def _parse_argv(self):
     args = sys.argv
     self.infos = []
     self.ColorBox_multis = []
     for arg in args:
         arg = arg.replace("'\"", "").replace("\"'", "")
         if arg == 'script.colorbox':
             continue
         elif arg.startswith('multis='):
             self.multim = Utils.Remove_Quotes(arg[7:])
             self.ColorBox_multis = self.multim.split(":")
         elif arg.startswith('daemon='):
             self.daemon = True
示例#2
0
 def __init__(self):
     Utils.log("version %s started" % ADDON_VERSION)
     self._init_vars()
     self._parse_argv()
     if not xbmcvfs.exists(ADDON_DATA_PATH):
         # addon data path does not exist...create it
         xbmcvfs.mkdir(ADDON_DATA_PATH)
     if self.control == "plugin":
         xbmcplugin.endOfDirectory(self.handle)
     Utils.Load_Colors_Dict()
     monitor = xbmc.Monitor()
     while self.daemon and not monitor.abortRequested():
         if xbmc.getInfoLabel("ListItem.Property(UnWatchedEpisodes)"
                              ) != self.show_watched:
             self.show_watched = xbmc.getInfoLabel(
                 "ListItem.Property(UnWatchedEpisodes)")
             Utils.Show_Percentage()
         self.prefix_now_NINE = HOME.getProperty("NINE_manual_set")
         if self.prefix_now_NINE != '' and self.prefix_now_NINE != self.prefix_prev_NINE or HOME.getProperty(
                 "NINE_daemon_fire"):
             try:
                 HOME.setProperty('Daemon_NINE_ImageUpdating', '0')
                 HOME.clearProperty("NINE_daemon_fire")
                 self.prefix_prev_NINE = self.prefix_now_NINE
                 self.info = ""
                 self.var = ""
                 for arg in self.prefix_now_NINE.strip().split(','):
                     arg = arg.replace("'\"", "").replace("\"'", "")
                     if arg.startswith('info='):
                         self.info = Utils.Remove_Quotes(arg[5:])
                     elif arg.startswith('id='):
                         self.id = Utils.Remove_Quotes(arg[3:])
                     elif arg.startswith('set='):
                         self.set = Utils.Remove_Quotes(arg[4:])
                     elif arg.startswith('var='):
                         self.var = Utils.Remove_Quotes(arg[4:])
                     elif arg.startswith('prefix='):
                         self.prefix = arg[7:]
                         if not self.prefix.endswith("."):
                             self.prefix = self.prefix + "."
                 if self.info != "":
                     HOME.setProperty(
                         self.prefix + "ImageFilterNINE",
                         ColorBox_function_map[self.info](self.id))
                     HOME.setProperty(self.prefix + "ImageNINE", self.id)
                     HOME.setProperty('Daemon_NINE_ImageUpdating', '1')
                     imagecolor, cimagecolor = Utils.Color_Only_Manual(
                         self.id)
                     HOME.setProperty(self.prefix + "ImageColorNINE",
                                      imagecolor)
                     HOME.setProperty(self.prefix + "ImageCColorNINE",
                                      cimagecolor)
                 elif self.var != "":
                     #change various settings
                     ColorBox_settings_map[self.var](self.set)
             except:
                 Utils.log("Could not process image for NINE daemon")
         FIVE_daemon_set = HOME.getProperty("FIVE_daemon_set")
         if not FIVE_daemon_set == 'None':
             self.image_now_FIVE = xbmc.getInfoLabel(
                 "Control.GetLabel(7975)")
             if self.image_now_FIVE != self.image_prev_FIVE and self.image_now_FIVE != "" or HOME.getProperty(
                     "FIVE_daemon_fire"):
                 try:
                     HOME.setProperty('Daemon_FIVE_ImageUpdating', '0')
                     HOME.clearProperty("FIVE_daemon_fire")
                     self.image_prev_FIVE = self.image_now_FIVE
                     HOME.setProperty("OldImageColorFIVE",
                                      HOME.getProperty("ImageColorFIVE"))
                     HOME.setProperty("OldImageCColorFIVE",
                                      HOME.getProperty("ImageCColorFIVE"))
                     HOME.setProperty(
                         'ImageFilterFIVE',
                         ColorBox_function_map[FIVE_daemon_set](
                             self.image_now_FIVE))
                     HOME.setProperty('ImageFIVE', self.image_now_FIVE)
                     HOME.setProperty('Daemon_FIVE_ImageUpdating', '1')
                     tm1 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_FIVE,
                                        "ImageColorFIVE",
                                        "ImageCColorFIVE"))
                     tm1.start()
                 except:
                     Utils.log("Could not process image for FIVE daemon")
         cfa_daemon_set = HOME.getProperty("cfa_daemon_set")
         #curr_window = xbmc.getInfoLabel("Window.Property(xmlfile)")
         if not cfa_daemon_set == 'None':
             self.image_now_cfa = xbmc.getInfoLabel("ListItem.Art(fanart)")
             if self.image_now_cfa != self.image_prev_cfa and self.image_now_cfa != "" or HOME.getProperty(
                     "cfa_daemon_fire"):
                 try:
                     HOME.setProperty('DaemonFanartImageUpdating', '0')
                     HOME.clearProperty("cfa_daemon_fire")
                     self.image_prev_cfa = self.image_now_cfa
                     HOME.setProperty("OldImageColorcfa",
                                      HOME.getProperty("ImageColorcfa"))
                     HOME.setProperty("OldImageCColorcfa",
                                      HOME.getProperty("ImageCColorcfa"))
                     HOME.setProperty(
                         'ImageFiltercfa',
                         ColorBox_function_map[cfa_daemon_set](
                             self.image_now_cfa))
                     HOME.setProperty('DaemonFanartImageUpdating', '1')
                     tf = Thread(target=Utils.Color_Only,
                                 args=(self.image_now_cfa, "ImageColorcfa",
                                       "ImageCColorcfa"))
                     tf.start()
                 except:
                     Utils.log("Could not process image for cfa daemon")
         if not HOME.getProperty("SEVEN_daemon_set") == 'None':
             self.image_now_SEVEN = xbmc.getInfoLabel(
                 "Control.GetLabel(7977)")
             if self.image_now_SEVEN != self.image_prev_SEVEN and self.image_now_SEVEN != "":
                 try:
                     self.image_prev_SEVEN = self.image_now_SEVEN
                     HOME.setProperty("OldImageColorSEVEN",
                                      HOME.getProperty("ImageColorSEVEN"))
                     HOME.setProperty("OldImageCColorSEVEN",
                                      HOME.getProperty("ImageCColorSEVEN"))
                     tm3 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_SEVEN,
                                        "ImageColorSEVEN",
                                        "ImageCColorSEVEN"))
                     tm3.start()
                 except:
                     Utils.log("Could not process image for SEVEN daemon")
         if not HOME.getProperty("EIGHT_daemon_set") == 'None':
             self.image_now_EIGHT = xbmc.getInfoLabel(
                 "Control.GetLabel(7978)")
             if self.image_now_EIGHT != self.image_prev_EIGHT and self.image_now_EIGHT != "" or HOME.getProperty(
                     "EIGHT_daemon_fire"):
                 try:
                     HOME.setProperty('Daemon_EIGHT_ImageUpdating', '0')
                     HOME.clearProperty("EIGHT_daemon_fire")
                     self.image_prev_EIGHT = self.image_now_EIGHT
                     HOME.setProperty("OldImageColorEIGHT",
                                      HOME.getProperty("ImageColorEIGHT"))
                     HOME.setProperty("OldImageCColorEIGHT",
                                      HOME.getProperty("ImageCColorEIGHT"))
                     HOME.setProperty(
                         'ImageFilterEIGHT',
                         ColorBox_function_map[EIGHT_daemon_set](
                             self.image_now_EIGHT))
                     HOME.setProperty('ImageEIGHT', self.image_now_EIGHT)
                     HOME.setProperty('Daemon_EIGHT_ImageUpdating', '1')
                     tm4 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_EIGHT,
                                        "ImageColorEIGHT",
                                        "ImageCColorEIGHT"))
                     tm4.start()
                 except:
                     Utils.log("Could not process image for EIGHT daemon")
         monitor.waitForAbort(0.2)
示例#3
0

if __name__ == "__main__":
    args = sys.argv
    infos = []
    infom = ""
    idm = ""
    prefixm = ""
    for arg in args:
        arg = arg.replace("'\"", "").replace("\"'", "")
        if arg == 'script.colorbox':
            continue
        elif arg.startswith('daemon='):
            ColorBoxMain()
        elif arg.startswith('info='):
            infom = Utils.Remove_Quotes(arg[5:])
        elif arg.startswith('id='):
            idm = Utils.Remove_Quotes(arg[3:])
        elif arg.startswith('quality='):
            ColorBox_settings_map['quality'](Utils.Remove_Quotes(arg[8:]))
        elif arg.startswith('blursize='):
            ColorBox_settings_map['blursize'](Utils.Remove_Quotes(arg[9:]))
        elif arg.startswith('pixelsize='):
            ColorBox_settings_map['pixelsize'](Utils.Remove_Quotes(arg[10:]))
        elif arg.startswith('bitsize='):
            ColorBox_settings_map['bitsize'](Utils.Remove_Quotes(arg[8:]))
        elif arg.startswith('black='):
            ColorBox_settings_map['black'](Utils.Remove_Quotes(arg[6:]))
        elif arg.startswith('white='):
            ColorBox_settings_map['white'](Utils.Remove_Quotes(arg[6:]))
        elif arg.startswith('prefix='):
 def __init__(self):
     Utils.log("version %s started" % ADDON_VERSION)
     self._init_vars()
     self._parse_argv()
     if not xbmcvfs.exists(ADDON_DATA_PATH):
         xbmcvfs.mkdir(ADDON_DATA_PATH)
     if self.control == "plugin":
         xbmcplugin.endOfDirectory(self.handle)
     Utils.Load_Colors_Dict()
     monitor = xbmc.Monitor()
     while self.daemon and not monitor.abortRequested():
         Utils.Show_Percentage()
         self.label_now_TWO = xbmc.getInfoLabel("Control.GetLabel(7972)")
         if (self.label_now_TWO != self.label_prev_TWO):
             self.label_prev_TWO = self.label_now_TWO
             HOME.setProperty('LabelFilterTWO', re.sub('\s+',' ',reduce(lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv), ColorBox_strip, self.label_now_TWO).strip()))
         self.label_now_THREE = xbmc.getInfoLabel("Control.GetLabel(7973)")
         if (self.label_now_THREE != self.label_prev_THREE):
             self.label_prev_THREE = self.label_now_THREE
             HOME.setProperty('LabelFilterTHREE', re.sub('\s+',' ',reduce(lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv), ColorBox_strip, self.label_now_THREE).strip()))
         self.label_now_FOUR = xbmc.getInfoLabel("Control.GetLabel(7974)")
         if (self.label_now_FOUR != self.label_prev_FOUR):
             self.label_prev_FOUR = self.label_now_FOUR
             HOME.setProperty('LabelFilterFOUR', re.sub('\s+',' ',reduce(lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv), ColorBox_strip, self.label_now_FOUR).strip()))
         FIVE_daemon_set = HOME.getProperty("FIVE_daemon_set")
         if not FIVE_daemon_set == '':
             self.image_now_FIVE = xbmc.getInfoLabel("Control.GetLabel(7975)")
             if (self.image_now_FIVE != self.image_prev_FIVE and self.image_now_FIVE != "") or HOME.getProperty("FIVE_daemon_fire"):
                 HOME.setProperty('Daemon_FIVE_ImageUpdating', self.image_now_FIVE)
                 HOME.clearProperty("FIVE_daemon_fire")
                 #HOME.clearProperty("ImageFilterFIVE")
                 try:
                     HOME.setProperty('ImageFilterFIVE', Utils.ColorBox_go_map(self.image_now_FIVE, FIVE_daemon_set))
                 except Exception as e:
                     Utils.log("5err: %s img: %s" % (e,self.image_now_FIVE))
                 else:
                     self.image_prev_FIVE = self.image_now_FIVE
                     HOME.setProperty("OldImageColorFIVE", HOME.getProperty("ImageColorFIVE"))
                     HOME.setProperty("OldImageCColorFIVE", HOME.getProperty("ImageCColorFIVE"))
                     HOME.setProperty('ImageFIVE', self.image_now_FIVE)
                     tm1 = Thread(target=Utils.Color_Only, args=(self.image_now_FIVE, "ImageColorFIVE", "ImageCColorFIVE"))
                     tm1.start()
                 HOME.setProperty('Daemon_FIVE_ImageUpdating', '')
         cfa_daemon_set = HOME.getProperty("cfa_daemon_set")
         #curr_window = xbmc.getInfoLabel("Window.Property(xmlfile)")
         if not cfa_daemon_set == '':
             self.image_now_cfa = xbmc.getInfoLabel("ListItem.Art(fanart)")
             if (self.image_now_cfa != self.image_prev_cfa and self.image_now_cfa != "") or HOME.getProperty("cfa_daemon_fire"):
                 HOME.setProperty('Daemon_cfa_ImageUpdating', self.image_now_cfa)
                 HOME.clearProperty("cfa_daemon_fire")
                 #HOME.clearProperty("ImageFiltercfa")
                 try:
                     HOME.setProperty('ImageFiltercfa', Utils.ColorBox_go_map(self.image_now_cfa, cfa_daemon_set))
                 except Exception as e:
                     Utils.log("cerr: %s img: %s" % (e,self.image_now_cfa))
                 else:
                     self.image_prev_cfa = self.image_now_cfa
                     HOME.setProperty("OldImageColorcfa", HOME.getProperty("ImageColorcfa"))
                     HOME.setProperty("OldImageCColorcfa", HOME.getProperty("ImageCColorcfa"))
                     tf = Thread(target=Utils.Color_Only, args=(self.image_now_cfa, "ImageColorcfa", "ImageCColorcfa"))
                     tf.start()
                 HOME.setProperty('Daemon_cfa_ImageUpdating', '')
         SEVEN_daemon_set = HOME.getProperty("SEVEN_daemon_set")
         if not SEVEN_daemon_set == '':
             self.image_now_SEVEN = xbmc.getInfoLabel("Control.GetLabel(7977)")
             if self.image_now_SEVEN != self.image_prev_SEVEN and self.image_now_SEVEN != "":
                 try:
                     self.image_prev_SEVEN = self.image_now_SEVEN
                     HOME.setProperty("OldImageColorSEVEN", HOME.getProperty("ImageColorSEVEN"))
                     HOME.setProperty("OldImageCColorSEVEN", HOME.getProperty("ImageCColorSEVEN"))
                     tm3 = Thread(target=Utils.Color_Only, args=(self.image_now_SEVEN, "ImageColorSEVEN", "ImageCColorSEVEN"))
                     tm3.start()
                 except Exception as e:
                     Utils.log("7err: %s img: %s" % (e,self.image_now_SEVEN))
         EIGHT_daemon_set = HOME.getProperty("EIGHT_daemon_set")
         if not EIGHT_daemon_set == '':
             self.image_now_EIGHT = xbmc.getInfoLabel("Control.GetLabel(7978)")
             if (self.image_now_EIGHT != self.image_prev_EIGHT and self.image_now_EIGHT != "") or HOME.getProperty("EIGHT_daemon_fire"):
                 HOME.setProperty('Daemon_EIGHT_ImageUpdating', self.image_now_EIGHT)
                 HOME.clearProperty("EIGHT_daemon_fire")
                 #HOME.clearProperty("ImageFilterEIGHT")
                 try:
                     HOME.setProperty('ImageFilterEIGHT', Utils.ColorBox_go_map(self.image_now_EIGHT, EIGHT_daemon_set))
                 except Exception as e:
                     Utils.log("8err: %s img: %s" % (e,self.image_now_EIGHT))
                 else:
                     self.image_prev_EIGHT = self.image_now_EIGHT
                     HOME.setProperty("OldImageColorEIGHT", HOME.getProperty("ImageColorEIGHT"))
                     HOME.setProperty("OldImageCColorEIGHT", HOME.getProperty("ImageCColorEIGHT"))
                     HOME.setProperty('ImageEIGHT', self.image_now_EIGHT)
                     tm4 = Thread(target=Utils.Color_Only, args=(self.image_now_EIGHT, "ImageColorEIGHT", "ImageCColorEIGHT"))
                     tm4.start()
                 HOME.setProperty('Daemon_EIGHT_ImageUpdating', '')
         self.manual_set_NINE = HOME.getProperty("NINE_manual_set")
         if (self.manual_set_NINE != '' and self.manual_set_NINE != self.prefix_prev_NINE) or HOME.getProperty("NINE_daemon_fire"):
             HOME.setProperty('Daemon_NINE_ImageUpdating', self.manual_set_NINE)
             try:
                 HOME.clearProperty("NINE_daemon_fire")
                 self.prefix_prev_NINE = self.manual_set_NINE
                 self.info = ""
                 self.id = ""
                 self.set = ""
                 self.var = ""
                 self.prefix = ""
                 for larg in self.manual_set_NINE.strip().split('|'):
                     for arg in larg.strip().split(','):
                         arg = arg.replace('"', "")
                         if arg.startswith('info='):
                             self.info = Utils.Remove_Quotes(arg[5:])
                         elif arg.startswith('id='):
                             self.id = Utils.Remove_Quotes(arg[3:])
                         elif arg.startswith('set='):
                             self.set = Utils.Remove_Quotes(arg[4:])
                         elif arg.startswith('var='):
                             self.var = Utils.Remove_Quotes(arg[4:])
                         elif arg.startswith('prefix='):
                             self.prefix = arg[7:]
                             if not self.prefix.endswith("."):
                                 self.prefix = self.prefix + "."
                     if self.info != "":
                         HOME.setProperty(self.prefix + 'ImageFilterNINE', Utils.ColorBox_go_map(self.id, self.info))
                         HOME.setProperty(self.prefix + "ImageNINE", self.id)
                         imagecolor, cimagecolor = Utils.Color_Only_Manual(self.id, self.prefix + "ImageColorNINE")
                         HOME.setProperty(self.prefix + "ImageColorNINE", imagecolor)
                         HOME.setProperty(self.prefix + "ImageCColorNINE", cimagecolor)
                     elif self.var != "":
                         ColorBox_settings_map[self.var](self.set)
             except Exception as e:
                 Utils.log("9err: %s img: %s" % (e,self.manual_set_NINE))
             HOME.setProperty('Daemon_NINE_ImageUpdating', '')
         if self.ColorBox_multis != []:
             for line in self.ColorBox_multis:
                 self.idm, self.wpnam, self.mfx, self.mqual = line.strip().split(':')
                 self.image_now_MULTI = xbmc.getInfoLabel("Control.GetLabel(" + str(self.idm) + ")")
                 if self.image_now_MULTI != HOME.getProperty(self.wpnam) and self.image_now_MULTI != "":
                     try:
                         HOME.setProperty(self.wpnam + "ImageFilter", Utils.ColorBox_go_map(self.image_now_MULTI, self.mfx, self.mqual))
                     except Exception as e:
                         Utils.log("merr: %s img: %s" % (e,self.ColorBox_multis))
                     else:
                         HOME.setProperty(self.wpnam + "Image", self.image_now_MULTI)
                         imagecolor, cimagecolor = Utils.Color_Only_Manual(self.image_now_MULTI, self.wpnam + "ImageColor")
                         HOME.setProperty(self.wpnam + "ImageColor", imagecolor)
                         HOME.setProperty(self.wpnam + "ImageCColor", cimagecolor)
         monitor.waitForAbort(0.2)
示例#5
0
 def __init__(self):
     Utils.log("version %s started" % ADDON_VERSION)
     self._init_vars()
     self._parse_argv()
     if not xbmcvfs.exists(ADDON_DATA_PATH):
         # addon data path does not exist...create it
         xbmcvfs.mkdir(ADDON_DATA_PATH)
     if self.control == "plugin":
         xbmcplugin.endOfDirectory(self.handle)
     Utils.Load_Colors_Dict()
     monitor = xbmc.Monitor()
     while self.daemon and not monitor.abortRequested():
         Utils.Show_Percentage()
         #HOME.setProperty('WidgetNameLabelVar', xbmc.getInfoLabel("Control.GetLabel(7973)").replace("[CR]", " "))
         #HOME.setProperty('HomeHeaderSubline', xbmc.getInfoLabel("Control.GetLabel(7974)").replace("[CR]", " "))
         HOME.setProperty(
             'LabelFilterTWO',
             re.sub(
                 '\s+', ' ',
                 reduce(
                     lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv),
                     ColorBox_strip,
                     xbmc.getInfoLabel("Control.GetLabel(7972)")).strip()))
         HOME.setProperty(
             'LabelFilterTHREE',
             re.sub(
                 '\s+', ' ',
                 reduce(
                     lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv),
                     ColorBox_strip,
                     xbmc.getInfoLabel("Control.GetLabel(7973)")).strip()))
         HOME.setProperty(
             'LabelFilterFOUR',
             re.sub(
                 '\s+', ' ',
                 reduce(
                     lambda CBX_a, CBX_kv: CBX_a.replace(*CBX_kv),
                     ColorBox_strip,
                     xbmc.getInfoLabel("Control.GetLabel(7974)")).strip()))
         FIVE_daemon_set = HOME.getProperty("FIVE_daemon_set")
         if not FIVE_daemon_set == '':
             self.image_now_FIVE = xbmc.getInfoLabel(
                 "Control.GetLabel(7975)")
             if self.image_now_FIVE != self.image_prev_FIVE and self.image_now_FIVE != "" or HOME.getProperty(
                     "FIVE_daemon_fire"):
                 try:
                     HOME.setProperty('Daemon_FIVE_ImageUpdating', '0')
                     HOME.clearProperty("FIVE_daemon_fire")
                     self.image_prev_FIVE = self.image_now_FIVE
                     HOME.setProperty("OldImageColorFIVE",
                                      HOME.getProperty("ImageColorFIVE"))
                     HOME.setProperty("OldImageCColorFIVE",
                                      HOME.getProperty("ImageCColorFIVE"))
                     HOME.setProperty(
                         'ImageFilterFIVE',
                         ColorBox_function_map[FIVE_daemon_set](
                             self.image_now_FIVE))
                     HOME.setProperty('ImageFIVE', self.image_now_FIVE)
                     HOME.setProperty('Daemon_FIVE_ImageUpdating', '1')
                     tm1 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_FIVE,
                                        "ImageColorFIVE",
                                        "ImageCColorFIVE"))
                     tm1.start()
                 except:
                     Utils.log("Could not process image for FIVE daemon")
         cfa_daemon_set = HOME.getProperty("cfa_daemon_set")
         #curr_window = xbmc.getInfoLabel("Window.Property(xmlfile)")
         if not cfa_daemon_set == '':
             self.image_now_cfa = xbmc.getInfoLabel("ListItem.Art(fanart)")
             if self.image_now_cfa != self.image_prev_cfa and self.image_now_cfa != "" or HOME.getProperty(
                     "cfa_daemon_fire"):
                 try:
                     HOME.setProperty('DaemonFanartImageUpdating', '0')
                     HOME.clearProperty("cfa_daemon_fire")
                     self.image_prev_cfa = self.image_now_cfa
                     HOME.setProperty("OldImageColorcfa",
                                      HOME.getProperty("ImageColorcfa"))
                     HOME.setProperty("OldImageCColorcfa",
                                      HOME.getProperty("ImageCColorcfa"))
                     HOME.setProperty(
                         'ImageFiltercfa',
                         ColorBox_function_map[cfa_daemon_set](
                             self.image_now_cfa))
                     HOME.setProperty('DaemonFanartImageUpdating', '1')
                     tf = Thread(target=Utils.Color_Only,
                                 args=(self.image_now_cfa, "ImageColorcfa",
                                       "ImageCColorcfa"))
                     tf.start()
                 except:
                     Utils.log("Could not process image for cfa daemon")
         if not HOME.getProperty("SEVEN_daemon_set") == '':
             self.image_now_SEVEN = xbmc.getInfoLabel(
                 "Control.GetLabel(7977)")
             if self.image_now_SEVEN != self.image_prev_SEVEN and self.image_now_SEVEN != "":
                 try:
                     self.image_prev_SEVEN = self.image_now_SEVEN
                     HOME.setProperty("OldImageColorSEVEN",
                                      HOME.getProperty("ImageColorSEVEN"))
                     HOME.setProperty("OldImageCColorSEVEN",
                                      HOME.getProperty("ImageCColorSEVEN"))
                     tm3 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_SEVEN,
                                        "ImageColorSEVEN",
                                        "ImageCColorSEVEN"))
                     tm3.start()
                 except:
                     Utils.log("Could not process image for SEVEN daemon")
         if not HOME.getProperty("EIGHT_daemon_set") == '':
             self.image_now_EIGHT = xbmc.getInfoLabel(
                 "Control.GetLabel(7978)")
             if self.image_now_EIGHT != self.image_prev_EIGHT and self.image_now_EIGHT != "" or HOME.getProperty(
                     "EIGHT_daemon_fire"):
                 try:
                     HOME.setProperty('Daemon_EIGHT_ImageUpdating', '0')
                     HOME.clearProperty("EIGHT_daemon_fire")
                     self.image_prev_EIGHT = self.image_now_EIGHT
                     HOME.setProperty("OldImageColorEIGHT",
                                      HOME.getProperty("ImageColorEIGHT"))
                     HOME.setProperty("OldImageCColorEIGHT",
                                      HOME.getProperty("ImageCColorEIGHT"))
                     HOME.setProperty(
                         'ImageFilterEIGHT',
                         ColorBox_function_map[EIGHT_daemon_set](
                             self.image_now_EIGHT))
                     HOME.setProperty('ImageEIGHT', self.image_now_EIGHT)
                     HOME.setProperty('Daemon_EIGHT_ImageUpdating', '1')
                     tm4 = Thread(target=Utils.Color_Only,
                                  args=(self.image_now_EIGHT,
                                        "ImageColorEIGHT",
                                        "ImageCColorEIGHT"))
                     tm4.start()
                 except:
                     Utils.log("Could not process image for EIGHT daemon")
         self.manual_set_NINE = HOME.getProperty("NINE_manual_set")
         if self.manual_set_NINE != '' and self.manual_set_NINE != self.prefix_prev_NINE or HOME.getProperty(
                 "NINE_daemon_fire"):
             try:
                 HOME.setProperty('Daemon_NINE_ImageUpdating', '0')
                 HOME.clearProperty("NINE_daemon_fire")
                 self.prefix_prev_NINE = self.manual_set_NINE
                 self.info = ""
                 self.id = ""
                 self.set = ""
                 self.var = ""
                 self.prefix = ""
                 for larg in self.manual_set_NINE.strip().split('|'):
                     for arg in larg.strip().split(','):
                         arg = arg.replace("'\"", "").replace("\"'", "")
                         if arg.startswith('info='):
                             self.info = Utils.Remove_Quotes(arg[5:])
                         elif arg.startswith('id='):
                             self.id = Utils.Remove_Quotes(arg[3:])
                         elif arg.startswith('set='):
                             self.set = Utils.Remove_Quotes(arg[4:])
                         elif arg.startswith('var='):
                             self.var = Utils.Remove_Quotes(arg[4:])
                         elif arg.startswith('prefix='):
                             self.prefix = arg[7:]
                             if not self.prefix.endswith("."):
                                 self.prefix = self.prefix + "."
                     if self.info != "":
                         HOME.setProperty(
                             self.prefix + "ImageFilterNINE",
                             ColorBox_function_map[self.info](self.id))
                         HOME.setProperty(self.prefix + "ImageNINE",
                                          self.id)
                         HOME.setProperty('Daemon_NINE_ImageUpdating', '1')
                         imagecolor, cimagecolor = Utils.Color_Only_Manual(
                             self.id, self.prefix + "ImageColorNINE")
                         HOME.setProperty(self.prefix + "ImageColorNINE",
                                          imagecolor)
                         HOME.setProperty(self.prefix + "ImageCColorNINE",
                                          cimagecolor)
                     elif self.var != "":
                         #change various settings
                         ColorBox_settings_map[self.var](self.set)
             except:
                 Utils.log("Could not process image for NINE daemon")
         if self.ColorBox_multis != []:
             for line in self.ColorBox_multis:
                 self.idm, self.wpnam, self.mfx = line.strip().split('|')
                 self.image_now_MULTI = xbmc.getInfoLabel(
                     "Control.GetLabel(" + str(self.idm) + ")")
                 if self.image_now_MULTI != HOME.getProperty(
                         self.wpnam) and self.image_now_MULTI != "":
                     try:
                         HOME.setProperty(
                             self.wpnam + "ImageFilter",
                             ColorBox_function_map[self.mfx](
                                 self.image_now_MULTI))
                         HOME.setProperty(self.wpnam + "Image",
                                          self.image_now_MULTI)
                         imagecolor, cimagecolor = Utils.Color_Only_Manual(
                             self.image_now_MULTI,
                             self.wpnam + "ImageColor")
                         HOME.setProperty(self.wpnam + "ImageColor",
                                          imagecolor)
                         HOME.setProperty(self.wpnam + "ImageCColor",
                                          cimagecolor)
                     except:
                         Utils.log(
                             "Could not process image for image_now_MULTI daemon %s"
                             % self.wpnam)
         monitor.waitForAbort(0.2)