Ferramenta de linha de comando Radio Paradise
from subprocess import Popenimport ptyimport osimport sysimport pynotifydef parse_ICY(line): aline = line.split(‘\r\n’)[-1] junk, info = aline.split(‘=’, 1) try: info, junk = info.split(‘;’, 1) except ValueError: pass artist, title = info.split(‘-‘) …
Continuar lendo