예제 #1
0
def index():
    songs_db = player.get_songs_db()
    now_playing = songs_db['now_playing']
    if now_playing:
        now_playing['start_time'] = time.ctime(now_playing['start_time'])
    songs_queued = songs_db['queue']
    return render_template('index.html', now_playing=now_playing, songs_queued=songs_queued)
예제 #2
0
def history():
    songs_history = player.get_songs_db()['history']
    return render_template('history.html', songs_history=songs_history)