浏览代码

Update Jellyfin.Api/Controllers/UserLibraryController.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
1hitsong 2 年之前
父节点
当前提交
8b78802c0b
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      Jellyfin.Api/Controllers/UserLibraryController.cs

+ 1 - 5
Jellyfin.Api/Controllers/UserLibraryController.cs

@@ -402,11 +402,7 @@ namespace Jellyfin.Api.Controllers
 
             if (user == null)
             {
-                List<Lyrics> lyricsList = new List<Lyrics>
-                {
-                    new Lyrics { Error = "User Not Found" }
-                };
-                return NotFound(new { Results = lyricsList.ToArray() });
+                return NotFound();
             }
 
             var item = itemId.Equals(default)