deezer-downloader icon indicating copy to clipboard operation
deezer-downloader copied to clipboard

how to use API

Open tonyt321 opened this issue 3 years ago • 3 comments
trafficstars

I am trying to figure out how to use the simple REST api but don't know how to reach it.

tonyt321 avatar May 26 '22 21:05 tonyt321

You can check app/app.py or use the frontend in the brwoser and check the browsers debug console (check the network tab).

kmille avatar May 26 '22 21:05 kmille

I am always getting

error: "add_to_playlist must be a boolean"

with this as my input

msg.payload = { 'playlist_name': 'emby add', 'playlist_url': 'https://open.spotify.com/track/4TjWyfp9lWll6VzccPbjYY?si=f00pGGnYRIaRI-emvDxx2A', 'add_to_playlist': 'False', 'create_zip': 'False' }

//set url msg.url = "http://192.168.1.21:8093/playlist/spotify"

tonyt321 avatar May 27 '22 02:05 tonyt321

'add_to_playlist': 'False',

it looks like you are using 'False' as a string. Try False/false

kmille avatar May 27 '22 06:05 kmille