Example #1
0
def ObtenerCancionID():
    global ArregloCanciones, cont_canciones
    Datos=[]
    for cancion in ArregloCanciones:
        Dato={
            'id':cancion.getId(),
            'spotify':cancion.getSpotify(),
            }
        Datos.append(Dato)
    respuesta=jsonify(Datos)
    return (respuesta)
Example #2
0
def ObtenerPlaylist():
    global ArregloPlaylist
    Datos=[]
    for cancion in ArregloPlaylist:
        Dato={
            'id':cancion.getId(),
            'cancion':cancion.getCancion(),
            'artista':cancion.getArtista(),
            'album':cancion.getAlbum(),
            'fecha':cancion.getFecha(),
            'imagen':cancion.getImagen(),
            'spotify':cancion.getSpotify(),
            'youtube':cancion.getYoutube()
            }
        Datos.append(Dato)
    respuesta=jsonify(Datos)
    return (respuesta)