lastfm support 🤘

This commit is contained in:
Nemo 2017-02-02 13:29:05 +05:30
parent 5bf493bbda
commit d6641b883e
1 changed files with 3 additions and 2 deletions

View File

@ -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)