Exemple #1
0
def show_lyrics():
    try:
        artist, title = get_song()
        lyrics = lyricwikia.get_all_lyrics(artist, title)
        lyrics = ''.join(lyrics[0])
        print(lyrics)
    except BaseException:
        print('lyrics not found')
Exemple #2
0
def show_lyrics():
    artist, title = get_song()
    try:
        lyrics = lyricwikia.get_all_lyrics(artist, title)
    except BaseException:
        lyrics = azlyrics.lyrics(artist, title)
        if "Error" in lyrics:
            print('lyrics not found')
            return
    lyrics = ''.join(lyrics[0])
    print(lyrics)
Exemple #3
0
def show_lyrics():
    artist, title = get_song()
    lyrics = lyricwikia.get_all_lyrics(artist, title)
    lyrics = ''.join(lyrics[0]).encode('utf-8')
    print("\n")
    print(lyrics)