Skip to content

The Free Software Media System - Server Backend & API

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

Luke Pulverentic48458f215bd
diff --cc MediaBrowser.Api/PackageReviewService.cs
index c4cf1eac31,112a2c5cea..ce366ccd4c
--- a/MediaBrowser.Api/PackageReviewService.cs
+++ b/MediaBrowser.Api/PackageReviewService.cs
@@@ -102,7 -103,6 +102,7 @@@ namespace MediaBrowser.Ap
private readonly IHttpClient _httpClient;
private readonly INetworkManager _netManager;
private readonly IJsonSerializer _serializer;
- private const string MbAdminUrl = "http://www.mb3admin.com/admin/";
++ private const string MbAdminUrl = "https://www.mb3admin.com/admin/";
public PackageReviewService(IHttpClient client, INetworkManager net, IJsonSerializer serializer)
{
diff --cc MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
index 78b0b13899,900009a238..89d00b87dc
--- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
@@@ -135,8 -134,6 +135,8 @@@ namespace MediaBrowser.Common.Implement
request.Referer = options.Referer;
}
- request.ServicePoint.BindIPEndPointDelegate = BindIPEndPointCallback;
++ //request.ServicePoint.BindIPEndPointDelegate = BindIPEndPointCallback;
+
return request;
}
diff --cc MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index 8da3006a37,2c387a4ddf..dfdf61016e
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@@ -17,9 -17,7 +17,9 @@@ namespace MediaBrowser.Common.Implement
/// </summary>
public class PluginSecurityManager : ISecurityManager
{
- private const string MbAdminUrl = "http://www.mb3admin.com/admin/";
- private const string MBValidateUrl = Constants.Constants.MbAdminUrl + "service/registration/validate";
++ private const string MbAdminUrl = "https://www.mb3admin.com/admin/";
+
+ private const string MBValidateUrl = MbAdminUrl + "service/registration/validate";
/// <summary>
/// The _is MB supporter
diff --cc MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
index 275e75188c,b022dc6719..0a8ce012f2
--- a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
+++ b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs
@@@ -172,7 -172,6 +172,7 @@@ namespace MediaBrowser.Common.Implement
}
private Tuple<List<PackageInfo>, DateTime> _lastPackageListResult;
- private const string MbAdminUrl = "http://www.mb3admin.com/admin/";
++ private const string MbAdminUrl = "https://www.mb3admin.com/admin/";
/// <summary>
/// Gets all available packages.
diff --cc MediaBrowser.Controller/Entities/BaseItem.cs
index c784098479,990ea49f67..ca08cf1a1b
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@@ -602,118 -593,118 +602,6 @@@ namespace MediaBrowser.Controller.Entit
return PlayAccess.Full;
}
-- /// <summary>
-- /// Loads local trailers from the file system
-- /// </summary>
-- /// <returns>List{Video}.</returns>
-- private IEnumerable<Trailer> LoadLocalTrailers(List<FileSystemInfo> fileSystemChildren, IDirectoryService directoryService)
-- {
-- var files = fileSystemChildren.OfType<DirectoryInfo>()
-- .Where(i => string.Equals(i.Name, TrailerFolderName, StringComparison.OrdinalIgnoreCase))
-- .SelectMany(i => i.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
-- .ToList();
--
-- var extraTypes = new List<ExtraType> { ExtraType.Trailer };
-- var suffixes = ExtraSuffixes.Where(i => extraTypes.Contains(i.Value))
-- .Select(i => i.Key)
-- .ToList();
--
-- files.AddRange(fileSystemChildren.OfType<FileInfo>()
-- .Where(i =>
-- {
-- var nameEithoutExtension = FileSystem.GetFileNameWithoutExtension(i);
--
-- if (!suffixes.Any(s => nameEithoutExtension.EndsWith(s, StringComparison.OrdinalIgnoreCase)))
-- {
-- return false;
-- }
--
-- return !string.Equals(Path, i.FullName, StringComparison.OrdinalIgnoreCase);
-- }));
--
-- return LibraryManager.ResolvePaths<Trailer>(files, directoryService, null).Select(video =>
-- {
-- // Try to retrieve it from the db. If we don't find it, use the resolved version
-- var dbItem = LibraryManager.GetItemById(video.Id) as Trailer;
--
-- if (dbItem != null)
-- {
-- video = dbItem;
-- }
--
-- if (video != null)
-- {
-- video.ExtraType = ExtraType.Trailer;
-- }
--
-- return video;
--
-- // Sort them so that the list can be easily compared for changes
-- }).OrderBy(i => i.Path).ToList();
-- }
--
-- protected IEnumerable<Video> LoadSpecialFeatures(List<FileSystemInfo> fileSystemChildren, IDirectoryService directoryService)
-- {
-- var files = fileSystemChildren.OfType<DirectoryInfo>()
-- .Where(i => string.Equals(i.Name, "extras", StringComparison.OrdinalIgnoreCase) || string.Equals(i.Name, "specials", StringComparison.OrdinalIgnoreCase))
-- .SelectMany(i => i.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
-- .ToList();
--
-- var extraTypes = new List<ExtraType> { ExtraType.BehindTheScenes, ExtraType.DeletedScene, ExtraType.Interview, ExtraType.Sample, ExtraType.Scene, ExtraType.Clip };
-- var suffixes = ExtraSuffixes.Where(i => extraTypes.Contains(i.Value))
-- .Select(i => i.Key)
-- .ToList();
--
-- files.AddRange(fileSystemChildren.OfType<FileInfo>()
-- .Where(i =>
-- {
-- var nameEithoutExtension = FileSystem.GetFileNameWithoutExtension(i);
--
-- if (!suffixes.Any(s => nameEithoutExtension.EndsWith(s, StringComparison.OrdinalIgnoreCase)))
-- {
-- return false;
-- }
--
-- return !string.Equals(Path, i.FullName, StringComparison.OrdinalIgnoreCase);
-- }));
--
-- return LibraryManager.ResolvePaths<Video>(files, directoryService, null).Select(video =>
-- {
-- // Try to retrieve it from the db. If we don't find it, use the resolved version
-- var dbItem = LibraryManager.GetItemById(video.Id) as Video;
--
-- if (dbItem != null)
-- {
-- video = dbItem;
-- }
--
-- if (video != null)
-- {
-- SetExtraTypeFromFilename(video);
-- }
--
-- return video;
--
-- // Sort them so that the list can be easily compared for changes
-- }).OrderBy(i => i.Path).ToList();
-- }
--
-- private void SetExtraTypeFromFilename(Video item)
-- {
-- var name = System.IO.Path.GetFileNameWithoutExtension(item.Path) ?? string.Empty;
--
-- foreach (var suffix in ExtraSuffixes)
-- {
-- if (name.EndsWith(suffix.Key, StringComparison.OrdinalIgnoreCase))
-- {
-- item.ExtraType = suffix.Value;
-- return;
-- }
-- }
--
-- item.ExtraType = ExtraType.Clip;
-- }
--
/// <summary>
/// Loads the theme songs.
/// </summary>
@@@ -879,7 -870,7 +767,8 @@@
private async Task<bool> RefreshLocalTrailers(IHasTrailers item, MetadataRefreshOptions options, List<FileSystemInfo> fileSystemChildren, CancellationToken cancellationToken)
{
-- var newItems = LoadLocalTrailers(fileSystemChildren, options.DirectoryService).ToList();
++ var newItems = LibraryManager.FindTrailers(this, fileSystemChildren, options.DirectoryService).ToList();
++
var newItemIds = newItems.Select(i => i.Id).ToList();
var itemsChanged = !item.LocalTrailerIds.SequenceEqual(newItemIds);
diff --cc MediaBrowser.Controller/Entities/Folder.cs
index 0e712dc458,34f52aac5d..ad90027de4
--- a/MediaBrowser.Controller/Entities/Folder.cs
+++ b/MediaBrowser.Controller/Entities/Folder.cs
@@@ -1,5 -1,5 +1,4 @@@
--using MediaBrowser.Common.Extensions;
--using MediaBrowser.Common.Progress;
++using MediaBrowser.Common.Progress;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Localization;
diff --cc MediaBrowser.Controller/Entities/Movies/Movie.cs
index 686abdaf56,686abdaf56..4ac3ed77f4
--- a/MediaBrowser.Controller/Entities/Movies/Movie.cs
+++ b/MediaBrowser.Controller/Entities/Movies/Movie.cs
@@@ -119,7 -119,7 +119,7 @@@ namespace MediaBrowser.Controller.Entit
private async Task<bool> RefreshSpecialFeatures(MetadataRefreshOptions options, List<FileSystemInfo> fileSystemChildren, CancellationToken cancellationToken)
{
-- var newItems = LoadSpecialFeatures(fileSystemChildren, options.DirectoryService).ToList();
++ var newItems = LibraryManager.FindExtras(this, fileSystemChildren, options.DirectoryService).ToList();
var newItemIds = newItems.Select(i => i.Id).ToList();
var itemsChanged = !SpecialFeatureIds.SequenceEqual(newItemIds);
diff --cc MediaBrowser.Controller/Library/ILibraryManager.cs
index 10fee05a96,3367f98e47..0b2df9974e
--- a/MediaBrowser.Controller/Library/ILibraryManager.cs
+++ b/MediaBrowser.Controller/Library/ILibraryManager.cs
@@@ -229,46 -229,46 +229,6 @@@ namespace MediaBrowser.Controller.Libra
/// <returns>BaseItem.</returns>
BaseItem RetrieveItem(Guid id);
-- /// <summary>
-- /// Validates the artists.
-- /// </summary>
-- /// <param name="cancellationToken">The cancellation token.</param>
-- /// <param name="progress">The progress.</param>
-- /// <returns>Task.</returns>
-- Task ValidateArtists(CancellationToken cancellationToken, IProgress<double> progress);
--
-- /// <summary>
-- /// Validates the music genres.
-- /// </summary>
-- /// <param name="cancellationToken">The cancellation token.</param>
-- /// <param name="progress">The progress.</param>
-- /// <returns>Task.</returns>
-- Task ValidateMusicGenres(CancellationToken cancellationToken, IProgress<double> progress);
--
-- /// <summary>
-- /// Validates the game genres.
-- /// </summary>
-- /// <param name="cancellationToken">The cancellation token.</param>
-- /// <param name="progress">The progress.</param>
-- /// <returns>Task.</returns>
-- Task ValidateGameGenres(CancellationToken cancellationToken, IProgress<double> progress);
--
-- /// <summary>
-- /// Validates the genres.
-- /// </summary>
-- /// <param name="cancellationToken">The cancellation token.</param>
-- /// <param name="progress">The progress.</param>
-- /// <returns>Task.</returns>
-- Task ValidateGenres(CancellationToken cancellationToken, IProgress<double> progress);
--
-- /// <summary>
-- /// Validates the studios.
-- /// </summary>
-- /// <param name="cancellationToken">The cancellation token.</param>
-- /// <param name="progress">The progress.</param>
-- /// <returns>Task.</returns>
-- Task ValidateStudios(CancellationToken cancellationToken, IProgress<double> progress);
--
/// <summary>
/// Occurs when [item added].
/// </summary>
@@@ -414,13 -414,5 +374,33 @@@
IEnumerable<FileSystemInfo> GetAdditionalParts(string file,
VideoType type,
IEnumerable<FileSystemInfo> files);
+
+ /// <summary>
+ /// Gets the new item identifier.
+ /// </summary>
+ /// <param name="key">The key.</param>
+ /// <param name="type">The type.</param>
+ /// <returns>Guid.</returns>
+ Guid GetNewItemId(string key, Type type);
++
++ /// <summary>
++ /// Finds the trailers.
++ /// </summary>
++ /// <param name="owner">The owner.</param>
++ /// <param name="fileSystemChildren">The file system children.</param>
++ /// <param name="directoryService">The directory service.</param>
++ /// <returns>IEnumerable&lt;Trailer&gt;.</returns>
++ IEnumerable<Trailer> FindTrailers(BaseItem owner, List<FileSystemInfo> fileSystemChildren,
++ IDirectoryService directoryService);
++
++ /// <summary>
++ /// Finds the extras.
++ /// </summary>
++ /// <param name="owner">The owner.</param>
++ /// <param name="fileSystemChildren">The file system children.</param>
++ /// <param name="directoryService">The directory service.</param>
++ /// <returns>IEnumerable&lt;Video&gt;.</returns>
++ IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemInfo> fileSystemChildren,
++ IDirectoryService directoryService);
}
}
diff --cc MediaBrowser.Dlna/Didl/DidlBuilder.cs
index 5d5d24b1c7,565431758f..bdb1c4cbff
--- a/MediaBrowser.Dlna/Didl/DidlBuilder.cs
+++ b/MediaBrowser.Dlna/Didl/DidlBuilder.cs
@@@ -111,7 -111,7 +111,7 @@@ namespace MediaBrowser.Dlna.Did
}
}
-- AddCover(item, element);
++ AddCover(item, null, element);
return element;
}
@@@ -469,7 -460,7 +469,7 @@@
AddCommonFields(folder, stubType, null, container, filter);
-- AddCover(folder, container);
++ AddCover(folder, stubType, container);
return container;
}
@@@ -750,8 -741,8 +750,14 @@@
}
}
-- private void AddCover(BaseItem item, XmlElement element)
++ private void AddCover(BaseItem item, StubType? stubType, XmlElement element)
{
++ if (stubType.HasValue && stubType.Value == StubType.People)
++ {
++ AddEmbeddedImageAsCover("people", element);
++ return;
++ }
++
var imageInfo = GetImageInfo(item);
if (imageInfo == null)
@@@ -810,6 -801,6 +816,22 @@@
}
}
++ private void AddEmbeddedImageAsCover(string name, XmlElement element)
++ {
++ var result = element.OwnerDocument;
++
++ var icon = result.CreateElement("upnp", "albumArtURI", NS_UPNP);
++ var profile = result.CreateAttribute("dlna", "profileID", NS_DLNA);
++ profile.InnerText = _profile.AlbumArtPn;
++ icon.SetAttributeNode(profile);
++ icon.InnerText = _serverAddress + "/Dlna/icons/people480.jpg";
++ element.AppendChild(icon);
++
++ icon = result.CreateElement("upnp", "icon", NS_UPNP);
++ icon.InnerText = _serverAddress + "/Dlna/icons/people48.jpg";
++ element.AppendChild(icon);
++ }
++
private void AddImageResElement(BaseItem item,
XmlElement element,
int maxWidth,
diff --cc MediaBrowser.Dlna/Images/people48.jpg
index 0000000000,0000000000..06f49a8a2d
new file mode 100644
Binary files differ
diff --cc MediaBrowser.Dlna/Images/people48.png
index 0000000000,0000000000..7f846373f8
new file mode 100644
Binary files differ
diff --cc MediaBrowser.Dlna/Images/people480.jpg
index 0000000000,0000000000..5b78216349
new file mode 100644
Binary files differ
diff --cc MediaBrowser.Dlna/Images/people480.png
index 0000000000,0000000000..6d9a668d4e
new file mode 100644
Binary files differ
diff --cc MediaBrowser.Dlna/MediaBrowser.Dlna.csproj
index cff668b47a,cff668b47a..ece3da2dce
--- a/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj
+++ b/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj
@@@ -198,6 -198,6 +198,14 @@@
<ItemGroup>
<EmbeddedResource Include="Profiles\Xml\Popcorn Hour.xml" />
</ItemGroup>
++ <ItemGroup>
++ <EmbeddedResource Include="Images\people48.jpg" />
++ <EmbeddedResource Include="Images\people48.png" />
++ </ItemGroup>
++ <ItemGroup>
++ <EmbeddedResource Include="Images\people480.jpg" />
++ <EmbeddedResource Include="Images\people480.png" />
++ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
diff --cc MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs
index d5b7f5b363,d5b7f5b363..dba93cbd4c
--- a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs
@@@ -18,7 -18,7 +18,7 @@@ namespace MediaBrowser.Server.Implement
{
public class RemoteNotifications : IServerEntryPoint
{
-- private const string Url = "http://www.mb3admin.com/admin/service/MB3ServerNotifications.json";
++ private const string Url = "https://www.mb3admin.com/admin/service/MB3ServerNotifications.json";
private Timer _timer;
private readonly IHttpClient _httpClient;
diff --cc MediaBrowser.Server.Implementations/EntryPoints/UsageReporter.cs
index 36ba55828a,85410faf2b..b7bb482e0d
--- a/MediaBrowser.Server.Implementations/EntryPoints/UsageReporter.cs
+++ b/MediaBrowser.Server.Implementations/EntryPoints/UsageReporter.cs
@@@ -12,7 -12,6 +12,7 @@@ namespace MediaBrowser.Server.Implement
private readonly IApplicationHost _applicationHost;
private readonly INetworkManager _networkManager;
private readonly IHttpClient _httpClient;
- private const string MbAdminUrl = "http://www.mb3admin.com/admin/";
++ private const string MbAdminUrl = "https://www.mb3admin.com/admin/";
public UsageReporter(IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient)
{
diff --cc MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 81751545c1,63ced85599..dfddae24d9
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@@ -1736,5 -1706,5 +1736,113 @@@ namespace MediaBrowser.Server.Implement
return new List<FileSystemInfo>();
}
++
++ public IEnumerable<Trailer> FindTrailers(BaseItem owner, List<FileSystemInfo> fileSystemChildren, IDirectoryService directoryService)
++ {
++ var files = fileSystemChildren.OfType<DirectoryInfo>()
++ .Where(i => string.Equals(i.Name, BaseItem.TrailerFolderName, StringComparison.OrdinalIgnoreCase))
++ .SelectMany(i => i.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
++ .ToList();
++
++ var extraTypes = new List<ExtraType> { ExtraType.Trailer };
++ var suffixes = BaseItem.ExtraSuffixes.Where(i => extraTypes.Contains(i.Value))
++ .Select(i => i.Key)
++ .ToList();
++
++ files.AddRange(fileSystemChildren.OfType<FileInfo>()
++ .Where(i =>
++ {
++ var nameEithoutExtension = _fileSystem.GetFileNameWithoutExtension(i);
++
++ if (!suffixes.Any(s => nameEithoutExtension.EndsWith(s, StringComparison.OrdinalIgnoreCase)))
++ {
++ return false;
++ }
++
++ return !string.Equals(owner.Path, i.FullName, StringComparison.OrdinalIgnoreCase);
++ }));
++
++ return ResolvePaths<Trailer>(files, directoryService, null).Select(video =>
++ {
++ // Try to retrieve it from the db. If we don't find it, use the resolved version
++ var dbItem = GetItemById(video.Id) as Trailer;
++
++ if (dbItem != null)
++ {
++ video = dbItem;
++ }
++
++ if (video != null)
++ {
++ video.ExtraType = ExtraType.Trailer;
++ }
++
++ return video;
++
++ // Sort them so that the list can be easily compared for changes
++ }).OrderBy(i => i.Path).ToList();
++ }
++
++ public IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemInfo> fileSystemChildren, IDirectoryService directoryService)
++ {
++ var files = fileSystemChildren.OfType<DirectoryInfo>()
++ .Where(i => string.Equals(i.Name, "extras", StringComparison.OrdinalIgnoreCase) || string.Equals(i.Name, "specials", StringComparison.OrdinalIgnoreCase))
++ .SelectMany(i => i.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
++ .ToList();
++
++ var extraTypes = new List<ExtraType> { ExtraType.BehindTheScenes, ExtraType.DeletedScene, ExtraType.Interview, ExtraType.Sample, ExtraType.Scene, ExtraType.Clip };
++ var suffixes = BaseItem.ExtraSuffixes.Where(i => extraTypes.Contains(i.Value))
++ .Select(i => i.Key)
++ .ToList();
++
++ files.AddRange(fileSystemChildren.OfType<FileInfo>()
++ .Where(i =>
++ {
++ var nameEithoutExtension = _fileSystem.GetFileNameWithoutExtension(i);
++
++ if (!suffixes.Any(s => nameEithoutExtension.EndsWith(s, StringComparison.OrdinalIgnoreCase)))
++ {
++ return false;
++ }
++
++ return !string.Equals(owner.Path, i.FullName, StringComparison.OrdinalIgnoreCase);
++ }));
++
++ return ResolvePaths<Video>(files, directoryService, null).Select(video =>
++ {
++ // Try to retrieve it from the db. If we don't find it, use the resolved version
++ var dbItem = GetItemById(video.Id) as Video;
++
++ if (dbItem != null)
++ {
++ video = dbItem;
++ }
++
++ if (video != null)
++ {
++ SetExtraTypeFromFilename(video);
++ }
++
++ return video;
++
++ // Sort them so that the list can be easily compared for changes
++ }).OrderBy(i => i.Path).ToList();
++ }
++
++ private void SetExtraTypeFromFilename(Video item)
++ {
++ var name = System.IO.Path.GetFileNameWithoutExtension(item.Path) ?? string.Empty;
++
++ foreach (var suffix in BaseItem.ExtraSuffixes)
++ {
++ if (name.EndsWith(suffix.Key, StringComparison.OrdinalIgnoreCase))
++ {
++ item.ExtraType = suffix.Value;
++ return;
++ }
++ }
++
++ item.ExtraType = ExtraType.Clip;
++ }
}
}
diff --cc MediaBrowser.Server.Implementations/Library/Validators/ArtistsPostScanTask.cs
index 575ffec143,575ffec143..60116ac617
--- a/MediaBrowser.Server.Implementations/Library/Validators/ArtistsPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/ArtistsPostScanTask.cs
@@@ -32,7 -32,7 +32,7 @@@ namespace MediaBrowser.Server.Implement
/// <returns>Task.</returns>
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
-- return _libraryManager.ValidateArtists(cancellationToken, progress);
++ return ((LibraryManager)_libraryManager).ValidateArtists(cancellationToken, progress);
}
}
}
diff --cc MediaBrowser.Server.Implementations/Library/Validators/GameGenresPostScanTask.cs
index 097e94216e,097e94216e..ae6c863a71
--- a/MediaBrowser.Server.Implementations/Library/Validators/GameGenresPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/GameGenresPostScanTask.cs
@@@ -32,7 -32,7 +32,7 @@@ namespace MediaBrowser.Server.Implement
/// <returns>Task.</returns>
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
-- return _libraryManager.ValidateGameGenres(cancellationToken, progress);
++ return ((LibraryManager)_libraryManager).ValidateGameGenres(cancellationToken, progress);
}
}
}
diff --cc MediaBrowser.Server.Implementations/Library/Validators/GenresPostScanTask.cs
index d7add8574d,d7add8574d..f1d0ef3706
--- a/MediaBrowser.Server.Implementations/Library/Validators/GenresPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/GenresPostScanTask.cs
@@@ -29,7 -29,7 +29,7 @@@ namespace MediaBrowser.Server.Implement
/// <returns>Task.</returns>
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
-- return _libraryManager.ValidateGenres(cancellationToken, progress);
++ return ((LibraryManager)_libraryManager).ValidateGenres(cancellationToken, progress);
}
}
}
diff --cc MediaBrowser.Server.Implementations/Library/Validators/MusicGenresPostScanTask.cs
index da378228ad,da378228ad..280dd90f46
--- a/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/MusicGenresPostScanTask.cs
@@@ -32,7 -32,7 +32,7 @@@ namespace MediaBrowser.Server.Implement
/// <returns>Task.</returns>
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
-- return _libraryManager.ValidateMusicGenres(cancellationToken, progress);
++ return ((LibraryManager)_libraryManager).ValidateMusicGenres(cancellationToken, progress);
}
}
}
diff --cc MediaBrowser.Server.Implementations/Library/Validators/StudiosPostScanTask.cs
index a3a8b86781,a3a8b86781..0f998b0708
--- a/MediaBrowser.Server.Implementations/Library/Validators/StudiosPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/StudiosPostScanTask.cs
@@@ -32,7 -32,7 +32,7 @@@ namespace MediaBrowser.Server.Implement
/// <returns>Task.</returns>
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
-- return _libraryManager.ValidateStudios(cancellationToken, progress);
++ return ((LibraryManager)_libraryManager).ValidateStudios(cancellationToken, progress);
}
}
}