Code: Alles auswählen
artist=James Blunt
title=One Of The Brightest Stars
album=All The Lost Souls
artwork=cover-ccdc4ae7dbfbe2e188d009db095c1db4.jpg
genre=Rock
comment=
Code: Alles auswählen
try:
while True:
f = open( sys.path[0] + "/now_playing", "r" )
line1 = f.readline()
line2 = f.readline()
line3 = f.readline()
line4 = f.readline()
sleep (1)
f.close()
inter = line1[7:]
titel = line2[6:]
alb = line3[6:]
cover = line4[8:]
cover = cover.rstrip('\n')
fout = open( sys.path[0] + "/command", "w" )
fout.write(cover)
fout.close()
print (cover)
Code: Alles auswählen
genre=Rock
comment=
=
=
=
=