mirror of https://github.com/captn3m0/Scripts.git
lastfm support 🤘
This commit is contained in:
parent
5bf493bbda
commit
d6641b883e
|
@ -8,5 +8,6 @@ try:
|
|||
chartlist = soup.find(class_="chartlist-now-scrobbling").parent.parent.find(class_='chartlist-name').get_text().strip().replace('\n', '')
|
||||
print(chartlist)
|
||||
except Exception as e:
|
||||
print("FAILED")
|
||||
exit(1)
|
||||
with open('/home/nemo/.cmus/now-playing.txt', 'r') as myfile:
|
||||
print(myfile.read().strip())
|
||||
exit(0)
|
||||
|
|
Loading…
Reference in New Issue