From b60e351faa2df184ce6ed517d5bfddda676dbef9 Mon Sep 17 00:00:00 2001 From: siengrain Date: Sun, 6 Feb 2022 02:17:09 +0000 Subject: [PATCH] removed annoying div thingy now it doesn't say "
something" when the song isn't available on azl --- main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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