Browse Source

Update Jellyfin.Api/Controllers/UserLibraryController.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
1hitsong 2 năm trước cách đây
mục cha
commit
0aa2780ea7
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      Jellyfin.Api/Controllers/UserLibraryController.cs

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

@@ -411,11 +411,7 @@ namespace Jellyfin.Api.Controllers
 
             if (item == null)
             {
-                List<Lyrics> lyricsList = new List<Lyrics>
-                {
-                    new Lyrics { Error = "Requested Item Not Found" }
-                };
-                return NotFound(new { Results = lyricsList.ToArray() });
+                return NotFound();
             }
 
             List<Lyrics> result = ItemHelper.GetLyricData(item);