Stuff
public text v1 · immutable 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)