浏览代码

Support deleting empty playlist

Kim Christensen 7 年之前
父节点
当前提交
7534f0bff6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 	}