File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 88    long_description  =  f .read ()
99
1010setup (name = 'yet-another-spotify-lyrics' ,
11-       version = '1.0.2 ' ,
11+       version = '1.0.3 ' ,
1212      description = 'Command Line Spotify Lyrics with Album Cover' ,
1313      author = 'Göktuğ Karakaşlı' ,
14141717      long_description_content_type = 'text/markdown' ,
1818      url = 'https://github.com/goktug97/yet-another-spotify-lyrics' ,
1919      download_url = (
20-           'https://github.com/goktug97/yet-another-spotify-lyrics/archive/v1.0.2 .tar.gz' ),
20+           'https://github.com/goktug97/yet-another-spotify-lyrics/archive/v1.0.3 .tar.gz' ),
2121      py_modules = [os .path .splitext (os .path .basename (path ))[0 ]
2222                  for  path  in  ['spotify_lyrics' ]],
2323      entry_points = {
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ def main(canvas):
139139
140140    current_line  =  0 
141141    start_row  =  5 
142-     old_lyrics  =  None 
143142
144143    old_rows , old_columns  =  rows , columns 
145144    with  KeyPoller () as  key_poller :
@@ -159,13 +158,11 @@ def main(canvas):
159158
160159                old_rows , old_columns  =  rows , columns 
161160
162-             if  lyrics  !=  old_lyrics :
163-                 lines  =  lyrics .split ('\n ' )
164-                 wrapped_lines  =  []
165-                 for  line  in  lines :
166-                     wrapped_lines .extend (
167-                         textwrap .fill (line , columns // 2 - 2 ).split ('\n ' ))
168-                 old_lyrics  =  lyrics 
161+             lines  =  lyrics .split ('\n ' )
162+             wrapped_lines  =  []
163+             for  line  in  lines :
164+                 wrapped_lines .extend (
165+                     textwrap .fill (line , columns // 2 - 2 ).split ('\n ' ))
169166
170167            move_cursor (0 , start_row )
171168            n_entries  =  min (rows + current_line - start_row ,
@@ -199,6 +196,7 @@ def main(canvas):
199196                    time .sleep (1 )
200197            if  c  ==  'r' :
201198                os .system ('clear' )
199+                 move_cursor (0 , 0 )
202200                print_metadata (artist , album , song )
203201            if  c  ==  'd' :
204202                os .remove (lyrics_file )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments