def convert_cmus_output(self, cmus_output):
cmus_output = cmus_output.split('<STR_LIT:\n>')<EOL>cmus_output = [x.replace('<STR_LIT>', '<STR_LIT>') for x in cmus_output if not x in '<STR_LIT>']<EOL>cmus_output = [x.replace('<STR_LIT>', '<STR_LIT>') for x in cmus_output]<EOL>status = {}<EOL>partitioned = (item.partition('<STR_LIT:U+0020>') for item in cmus_output)<EOL>status = {item[<NUM_LIT:0>]: item[<NUM_LIT:2>] for item in partitioned}<EOL>status['<STR_LIT>'] = self.convert_time(status['<STR_LIT>'])<EOL>status['<STR_LIT>'] = self.convert_time(status['<STR_LIT>'])<EOL>return status<EOL>
Change the newline separated string of output data into
a dictionary which can then be used to replace the strings in the config
format.

cmus_output: A string with information about cmus that is newline
seperated. Running cmus-remote -Q in a terminal will show you what
you're dealing with.