einsteinx2/WaveBox

Delete action of playlist API handler is broken

Closed this issue · 4 comments

Returns the playlist object, as follows, but doesn't remove the playlist.

{
  "error": null,
  "playlists": [
    {
      "id": 14464,
      "name": "Biking Playlist",
      "count": 0,
      "duration": 0,
      "md5Hash": "",
      "lastUpdateTime": 1374782538
    }
  ],
  "mediaItems": []
}

Liar.

checks build date

Oh, you built yesterday. I'll take a look.

Verified on your build, gonna take a look now.

I was able to delete on your server using the following:

http://herpderp.me:6550/api/playlists?action=delete&id=23427

You need to pass an ID in order for the playlist object to be created, so it can then be deleted. I feel as if it is somewhat confusing for the handler to return the deleted object though, rather than a "success" message. Maybe we should fix that.

I was passing an ID, but apparently I had a typo or something. Closing as non-issue.