Chadi-Mangle / api_playlist_spotify

0 stars 0 forks source link

c quoi ce bazar #1

Open DreanoLucas opened 5 months ago

DreanoLucas commented 5 months ago

change moi ca c'est archi pas opti

while 1:
    if float(datetime.now().strftime('%H.%M%S'))+ 2 == 7: 
        d = DeleteSongs(playlist_lecrew_id)
        a = AddSongs(playlist_jour_id, playlist_lecrew_id)
        d.call_refresh()
        a.call_refresh()
    elif float(datetime.now().strftime('%H.%M%S'))+ 2 == 19:
        d = DeleteSongs(playlist_lecrew_id)
        a = AddSongs(playlist_nuit_id, playlist_lecrew_id)
        d.call_refresh()
        a.call_refresh()
Chadi-Mangle commented 5 months ago

oui nn mais c'est pythonanywhere ct payant d'avoir 2 taches par jour mais pas de laisser un code tourner tt la journée