Ejemplo n.º 1
0
def get_last_lyrics(user):
    limit = request.args.get('limit', 1, type=int)
    tracks = lastfm.get_recent_tracks(user, limit)
    for track in tracks:
        track['lyrics'] = lyricswiki.get_lyrics(track['artist'], track['song'])
    return tracks
Ejemplo n.º 2
0
def get_lyrics(artist, song):
    return dict(lyrics=lyricswiki.get_lyrics(artist, song))