From cb8e7a722e66bdac04a4a875cdc48b2ef843430b Mon Sep 17 00:00:00 2001 From: imaginary-upside Date: Sun, 8 Dec 2019 02:53:08 -0500 Subject: [PATCH] Run javbus through code formatter --- JellyfinJav/Providers/JavBus.cs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/JellyfinJav/Providers/JavBus.cs b/JellyfinJav/Providers/JavBus.cs index 5934625..3120024 100644 --- a/JellyfinJav/Providers/JavBus.cs +++ b/JellyfinJav/Providers/JavBus.cs @@ -54,7 +54,8 @@ public static async Task> GetResults(IHttpClient httpC { logger.LogInformation($"Jav Search movies {name} exceptions. {e.Message}"); return new JavBusResult[0]; - } else + } + else { return await GetResults(httpClient, logger, name, true); } @@ -113,16 +114,18 @@ public static MetadataResult GetMovieFromResult(JavBusResult result) { OriginalTitle = $"{result.Code} {string.Join(" ", result.Genres)}", Name = result.Name, - ProviderIds = new Dictionary {{"JavBus", result.Code}}, + ProviderIds = new Dictionary { { "JavBus", result.Code } }, Genres = result.Genres.ToArray(), PremiereDate = result.ReleaseDate, ProductionYear = result.ReleaseDate.Year }, - People = new List (from actress in result.Actresses select new PersonInfo { - Name = actress.Name, - Type = "JAV Actress", - ImageUrl = actress.ImageUrl - }) + People = new List(from actress in result.Actresses + select new PersonInfo + { + Name = actress.Name, + Type = "JAV Actress", + ImageUrl = actress.ImageUrl + }) }; } } @@ -218,7 +221,7 @@ public Task GetImageResponse(string url, CancellationToken can } } - public class JavBusMetadataProvider : IRemoteMetadataProvider + public class JavBusMetadataProvider : IRemoteMetadataProvider, IHasOrder { private readonly IHttpClient httpClient; private readonly ILogger logger; @@ -266,7 +269,7 @@ public async Task> GetMetadata(MovieInfo info, Cancellatio } - public async Task> GetSearchResults(MovieInfo searchInfo, + public async Task> GetSearchResults(MovieInfo searchInfo, CancellationToken cancellationToken) { var code = searchInfo.GetProviderId(JavBus.Name); @@ -287,7 +290,7 @@ public async Task> GetSearchResults(MovieInfo se SearchProviderName = "JavBus", Name = e.Name, ImageUrl = e.ImageUrl, - ProviderIds = new Dictionary {{"JavBus", e.Code}}, + ProviderIds = new Dictionary { { "JavBus", e.Code } }, PremiereDate = e.ReleaseDate, ProductionYear = e.ReleaseDate.Year };