File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from subprocess import Popen , PIPE
1111import logging
1212import lyriq
13-
14- logging .getLogger ("lyriq.lyriq" ).setLevel (logging .CRITICAL )
15-
1613from jeepney import DBusAddress , new_method_call
1714from jeepney .io .blocking import open_dbus_connection
1815
16+ logging .getLogger ("lyriq.lyriq" ).setLevel (logging .CRITICAL )
1917
2018class SpotifyCLIException (Exception ):
2119 """An exception wrapper purely to handle known exceptions nicely"""
@@ -232,10 +230,9 @@ def show_song_short():
232230def show_lyrics ():
233231 artist , title = get_song ()
234232 lyrics = lyriq .get_lyrics (title , artist )
235-
233+
236234 if lyrics is None :
237235 print (f"Lyrics for '{ title } ' by { artist } were not found." )
238- print ("This could happen if the track is missing from the lyrics database or is unsupported." )
239236 return
240237
241238 print (lyrics .plain_lyrics )
You can’t perform that action at this time.
0 commit comments