def main(self):
try:<EOL><INDENT>cmus_output = subprocess.check_output(['<STR_LIT>', '<STR_LIT>'],<EOL>stderr=subprocess.STDOUT).decode('<STR_LIT:utf-8>')<EOL><DEDENT>except subprocess.CalledProcessError:<EOL><INDENT>return self.output(None, None)<EOL><DEDENT>if '<STR_LIT>' in cmus_output:<EOL><INDENT>status = self.convert_cmus_output(cmus_output)<EOL>out_string = self.options['<STR_LIT>']<EOL>for k, v in status.items():<EOL><INDENT>out_string = out_string.replace(k, v)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>out_string = None<EOL><DEDENT>return self.output(out_string, out_string)<EOL>
A compulsary function that gets the output of the cmus-remote -Q command
and converts it to unicode in order for it to be processed and finally
output.