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', '') chartlist = soup.find(class_="chartlist-now-scrobbling").parent.parent.find(class_='chartlist-name').get_text().strip().replace('\n', '')
print(chartlist) print(chartlist)
except Exception as e: except Exception as e:
print("FAILED") with open('/home/nemo/.cmus/now-playing.txt', 'r') as myfile:
exit(1) print(myfile.read().strip())
exit(0)