From d6641b883e014e80a83e1bf59448c1106b0651f9 Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Thu, 2 Feb 2017 13:29:05 +0530 Subject: [PATCH] lastfm support :metal: --- get_current_track.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get_current_track.py b/get_current_track.py index 0379201..24c0468 100644 --- a/get_current_track.py +++ b/get_current_track.py @@ -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)