diff --git a/main.py b/main.py index a7f3244..e74781b 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +#!/bin/env python import azl import letras @@ -12,16 +13,21 @@ while True: song_url = azl.getLink(artist, title) un_lyr = azl.getLyrics(song_url) fin = azl.parsero(un_lyr) + if fin == '
': + fin = "Sorry I couldn't find that song :(" + print('\n<------------------------------------------------------------->') print(fin) elif web == 'l': song_url = letras.getLink(artist, title) un_lyr = letras.getLyrics(song_url) fin = letras.parsero(un_lyr) + print('\n<------------------------------------------------------------->') print(fin) else: print("I didn't give u that option dude") continue while True: + print('<------------------------------------------------------------->') res = input("What's the move? (s to search for another song/q to quit): ") if res == 's' or res == 'q': val = res @@ -36,4 +42,4 @@ while True: break else: print('SOMETHING WENT HORRIBLY WRONG GOTTA GO') - break + break \ No newline at end of file