瀏覽代碼

Merge remote-tracking branch 'origin/lyric-lrc-file-support' into lyric-lrc-file-support

1hitsong 2 年之前
父節點
當前提交
23ec35d396
共有 2 個文件被更改,包括 3 次插入11 次删除
  1. 2 10
      Jellyfin.Api/Controllers/UserLibraryController.cs
  2. 1 1
      Jellyfin.Api/Models/UserDtos/Lyrics.cs

+ 2 - 10
Jellyfin.Api/Controllers/UserLibraryController.cs

@@ -401,11 +401,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)
@@ -414,11 +410,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();
             }
 
             var result = ItemHelper.GetLyricData(item);

+ 1 - 1
Jellyfin.Api/Models/UserDtos/Lyrics.cs

@@ -11,7 +11,7 @@ namespace Jellyfin.Api.Models.UserDtos
         public double? Start { get; set; }
 
         /// <summary>
-        /// Gets or sets the test.
+        /// Gets or sets the text.
         /// </summary>
         public string? Text { get; set; }