Browse Source

Support deleting empty playlist

Kim Christensen 7 years ago
parent
commit
7534f0bff6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/api/playlist.go

+ 1 - 1
pkg/api/playlist.go

@@ -33,7 +33,7 @@ func ValidateOrgPlaylist(c *m.ReqContext) {
 		return
 	}
 
-	if len(items) == 0 {
+	if len(items) == 0 && c.Context.Req.Method != "DELETE" {
 		c.JsonApiErr(404, "Playlist is empty", itemsErr)
 		return
 	}