aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-01 19:04:00 +0200
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-01 19:04:00 +0200
commit377f9896ce65d4a29fe9d2198607ced2771b9abb (patch)
tree8655afc4d18c6142963bfa87b7b5cb324fadb5e0
parent4ff8d30e410de6de54b73663c801fa10233e2a82 (diff)
Small fixes
-rw-r--r--Emby.Naming/Video/ExtraRuleType.cs2
-rw-r--r--MediaBrowser.Api/UserLibrary/UserLibraryService.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Naming/Video/ExtraRuleType.cs b/Emby.Naming/Video/ExtraRuleType.cs
index 0a304874d..76872f3bc 100644
--- a/Emby.Naming/Video/ExtraRuleType.cs
+++ b/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,
}
diff --git a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
index 4cd201c3b..7fa750adb 100644
--- a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
+++ b/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();