瀏覽代碼

Small fixes

Mark Monteiro 5 年之前
父節點
當前提交
377f9896ce
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Emby.Naming/Video/ExtraRuleType.cs
  2. 1 1
      MediaBrowser.Api/UserLibrary/UserLibraryService.cs

+ 1 - 1
Emby.Naming/Video/ExtraRuleType.cs

@@ -20,7 +20,7 @@ namespace Emby.Naming.Video
         Regex = 2,
 
         /// <summary>
-        /// Match <see cref="ExtraRule.Token"/> against the directory name of the file.
+        /// Match <see cref="ExtraRule.Token"/> against the name of the directory containing the file.
         /// </summary>
         DirectoryName = 3,
     }

+ 1 - 1
MediaBrowser.Api/UserLibrary/UserLibraryService.cs

@@ -381,7 +381,7 @@ namespace MediaBrowser.Api.UserLibrary
 
             var dtoOptions = GetDtoOptions(_authContext, request);
 
-            var dtosExtras = item.GetExtras(new ExtraType[] { ExtraType.Trailer })
+            var dtosExtras = item.GetExtras(new[] { ExtraType.Trailer })
                 .Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item))
                 .ToArray();