def get_playlist(db_session, name, default_value=[]):
    try:
        c = db_session.cursor()
        c.execute("""SELECT songs FROM playlists WHERE name = ?""", [name])
        result = c.fetchone()[0]
        c.close()
    except:
        c.close()
        return default_value
    return cPickle.loads(str(result))
Retrieve a playlist from the database.
dataset/ETHPy150Open bahamas10/Viridian/AmpacheTools/dbfunctions.py/get_playlist