removed annoying div thingy

now it doesn't say "<div> something" when the song isn't available on azl
This commit is contained in:
siengrain 2022-02-06 02:17:09 +00:00
parent 28b6263ac3
commit b60e351faa
1 changed files with 7 additions and 1 deletions

View File

@ -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 == '<div id="RTK_u0kw"> <div id="RTK_YamI"> <div id="RTK_9uCq">':
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