예제 #1
0
def album():
    global album
    try:
        music_data = pandora_out()
        album = music_data['album']
        album = album.rstrip('\n')
    except Exception:
        pass
    return album or "Waiting!"
예제 #2
0
def song():
    global song
    try:
        music_data = pandora_out()
        song = music_data['song']
        song = song.rstrip('\n')
    except Exception:
        pass
    return song or "Waiting!"
예제 #3
0
def artist():
    global artist
    try:
        music_data = pandora_out()
        artist = music_data["artist"]
        artist = artist.rstrip("\n")
    except Exception:
        pass
    return artist or "Waiting!"
예제 #4
0
def station():
    global station
    try:
        music_data = pandora_out()
        station = music_data['station']
        station = station.rstrip('\n')
    except Exception:
        pass
    return station or "Waiting!"