songs2slides

A tool that automatically finds song lyrics and creates lyric slideshows
git clone https://git.ashermorgan.net/songs2slides/
Log | Files | Refs | README

commit 2302b37718bf4b2e50c09b30b68688d8050258cc
parent a3b9ae357b9a7de1b459846bda35be84e4db06e1
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Tue, 31 Mar 2020 11:52:39 -0700

Fix bug that adds extra blank slides.

Diffstat:
MSongs2Slides.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Songs2Slides.py b/Songs2Slides.py @@ -100,7 +100,8 @@ if (__name__ == "__main__"): # Get song lyrics try: lyrics += ParseLyrics(GetLyrics(artist, title)) - lyrics += [""] + if (lyrics[-1] != ""): + lyrics += [""] except: print("We couldn't find the lyrics to that song.") song -= 1 @@ -132,7 +133,8 @@ if (__name__ == "__main__"): lyrics = [] for song in rawLines.split("\n\n\n"): lyrics += ParseLyrics(song) - lyrics += [""] + if (lyrics[-1] != ""): + lyrics += [""] finally: # Delete temp file os.remove(temp.name)