X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FExtensions%2FCutListEditor%2Fplugin.py;h=a5adc51affbed4666f1823a365dc724c02d19907;hb=303583774ff0ada5674d5731a926ccf068d4c9b6;hp=7e591d26968a6d68253d0ad8eb059f463f91d909;hpb=2ce501a469cb168b98708fd8425679f2006b7b93;p=vuplus_dvbapp diff --git a/lib/python/Plugins/Extensions/CutListEditor/plugin.py b/lib/python/Plugins/Extensions/CutListEditor/plugin.py index 7e591d2..a5adc51 100644 --- a/lib/python/Plugins/Extensions/CutListEditor/plugin.py +++ b/lib/python/Plugins/Extensions/CutListEditor/plugin.py @@ -207,8 +207,9 @@ Then seek to the end, press OK, select 'end cut'. That's it. pass def setType(self, index, type): - self.cut_list[index] = (self.cut_list[index][0], type) - self["Cutlist"].setIndex(index, CutListEntry(*self.cut_list[index])) + if len(self.cut_list): + self.cut_list[index] = (self.cut_list[index][0], type) + self["Cutlist"].setIndex(index, CutListEntry(*self.cut_list[index])) def setIn(self): m = self["Cutlist"].getCurrentIndex()