def __init__(self, session, service, cutlistat): self.service = service #self.backup = [] self.cutlistat = cutlistat self.cut_list = [] Cutlist.__init__(self) MoviePlayer.__init__(self, session, service) self.skinName = "MoviePlayer" self["custom_actions"] = HelpableActionMap(self, "CutlistPlayerActions", { "left": (self.left, _("Move Cutlist to the left")), "right": (self.right, _("Move Cutlist to the right")), "ok": (self.switch, _("Switch between Marker and Cut-In/Out")), "exit": (self.cancel, _("Exit without saving")), #"up": (self["list"].pageUp, _("Page up")), #"down": (self["list"].pageDown, _("Page up")), #"red": (self.ok, _("Download Single Cutlist")), "green": (self.save, _("Save new cutlist")), #"yellow": (self.bestdownload, _("Page up")), #"blue": (self.remove, _("Remove Marker")), }, -3) self["Service"] = CutlistService(session.nav, self)
def removeWhats(self, services, whats): print "Removing marker..." for service in services: # Load CutList cutlist = Cutlist( service ) # Remove and write CutList cutlist.removeWhats(whats) print os.path.basename( service.getPath() ) print "Remove marker Finished"
def startPlayer(self, service, cutlist): if service and cutlist: cue = Cutlist(service) print "Backup", cue.getCutList() self.session.openWithCallback(boundFunction( self.playerClosed, service, cue ), CutlistPlayer, service, cutlist)