The Free Software Media System - Server Backend & API
Merge branch 'master' into minor
Bond_009787049f35f84
diff --cc MediaBrowser.Controller/Providers/DirectoryService.csindex b4dcb54415,ca470872b1..b7640c2050--- a/MediaBrowser.Controller/Providers/DirectoryService.cs+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs@@@ -66,13 -64,14 +64,12 @@@ namespace MediaBrowser.Controller.Provi}return file;- //return _fileSystem.GetFileInfo(path);}- public List<string> GetFilePaths(string path)- {- return GetFilePaths(path, false);- }+ public IReadOnlyList<string> GetFilePaths(string path)+ => GetFilePaths(path, false);- public List<string> GetFilePaths(string path, bool clearCache)+ public IReadOnlyList<string> GetFilePaths(string path, bool clearCache){if (clearCache || !_filePathCache.TryGetValue(path, out List<string> result)){diff --cc MediaBrowser.Controller/Providers/IDirectoryService.csindex e3815facc4,b304fc3356..949a17740b--- a/MediaBrowser.Controller/Providers/IDirectoryService.cs+++ b/MediaBrowser.Controller/Providers/IDirectoryService.cs@@@ -6,10 -6,13 +6,13 @@@ namespace MediaBrowser.Controller.Provipublic interface IDirectoryService{FileSystemMetadata[] GetFileSystemEntries(string path);+List<FileSystemMetadata> GetFiles(string path);+FileSystemMetadata GetFile(string path);- List<string> GetFilePaths(string path);+ IReadOnlyList<string> GetFilePaths(string path);+- List<string> GetFilePaths(string path, bool clearCache);+ IReadOnlyList<string> GetFilePaths(string path, bool clearCache);}}diff --cc MediaBrowser.Providers/MediaBrowser.Providers.csprojindex 9c986382f2,9a366364db..1d11a3cc21--- a/MediaBrowser.Providers/MediaBrowser.Providers.csproj+++ b/MediaBrowser.Providers/MediaBrowser.Providers.csproj@@@ -22,19 -22,16 +22,29 @@@<TargetFramework>netstandard2.1</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile>+ <LangVersion>preview</LangVersion>+ </PropertyGroup>++ <!-- Code Analyzers-->+ <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">+ <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8" PrivateAssets="All" />+ <PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />+ <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />+ <PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />+ </ItemGroup>++ <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">+ <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet></PropertyGroup>+ <ItemGroup>+ <None Remove="Plugins\AudioDb\Configuration\config.html" />+ <EmbeddedResource Include="Plugins\AudioDb\Configuration\config.html" />+ </ItemGroup>++ <ItemGroup>+ <None Remove="Plugins\MusicBrainz\Configuration\config.html" />+ <EmbeddedResource Include="Plugins\MusicBrainz\Configuration\config.html" />+ </ItemGroup>+</Project>diff --cc MediaBrowser.Providers/Plugins/MusicBrainz/AlbumProvider.csindex 3e276ba376,bc973dee5a..31cdaf616a--- a/MediaBrowser.Providers/Plugins/MusicBrainz/AlbumProvider.cs+++ b/MediaBrowser.Providers/Plugins/MusicBrainz/AlbumProvider.cs@@@ -777,9 -775,9 +776,9 @@@ namespace MediaBrowser.Providers.Musi_logger.LogDebug("GetMusicBrainzResponse: Time since previous request: {0} ms", _stopWatchMusicBrainz.ElapsedMilliseconds);_stopWatchMusicBrainz.Restart();- response = await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);+ response = await _httpClient.SendAsync(options, HttpMethod.Get).ConfigureAwait(false);- // We retry a finite number of times, and only whilst MB is indcating 503 (throttling)+ // We retry a finite number of times, and only whilst MB is indicating 503 (throttling)}while (attempts < MusicBrainzQueryAttempts && response.StatusCode == HttpStatusCode.ServiceUnavailable);