All pastes #389484 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-10 19:22 UTC
rendered paste body
  def setOptions(self, command):
        """Add relevant todisc options to the given Command."""
        chained = []
        for index, item in enumerate(self.varMappedList.get()):
            if item: chained.append(index)
            else: chained.append('')
        for index, item in enumerate(self.varMappedList.get()):
            if not item:
                if chained[index-1]:
                    chained.pop(index-1)
            elif index == len(self.varMappedList.get())-1:
                chained.pop(index)
 
        command.add('-chain-videos', *chained)