def get_current_cmus():
result = subprocess.run('<STR_LIT>'.split('<STR_LIT:U+0020>'), check=True,<EOL>stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)<EOL>info = {}<EOL>for line in result.stdout.decode().split('<STR_LIT:\n>'):<EOL><INDENT>line = line.split('<STR_LIT:U+0020>')<EOL>if line[<NUM_LIT:0>] != '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>key = line[<NUM_LIT:1>]<EOL>if key in ['<STR_LIT>', '<STR_LIT:title>', '<STR_LIT>', '<STR_LIT>'] andkey not in info:<EOL><INDENT>info[key] = '<STR_LIT:U+0020>'.join(line[<NUM_LIT:2>:])<EOL><DEDENT><DEDENT>if '<STR_LIT>' in info:<EOL><INDENT>info['<STR_LIT>'] = info['<STR_LIT>']<EOL>del info['<STR_LIT>']<EOL><DEDENT>return Song(**info)<EOL>
Get the current song from cmus.