From 95826dfb2424dd0394108d302eb45470f3ceea83 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Fri, 27 May 2022 23:03:00 +0800 Subject: [PATCH] adjust code --- Jellyfin.Plugin.JavTube/ApiClient.cs | 8 ++++---- Jellyfin.Plugin.JavTube/Extensions/LogManagerExtension.cs | 1 - Jellyfin.Plugin.JavTube/ExternalIds/ExternalId.cs | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Jellyfin.Plugin.JavTube/ApiClient.cs b/Jellyfin.Plugin.JavTube/ApiClient.cs index dc0eba4..96b2be3 100644 --- a/Jellyfin.Plugin.JavTube/ApiClient.cs +++ b/Jellyfin.Plugin.JavTube/ApiClient.cs @@ -142,8 +142,8 @@ public static class ApiClient return await SearchActor(keyword, provider, false, cancellationToken); } - public static async Task> SearchActor(string keyword, string provider, bool lazy, - CancellationToken cancellationToken) + public static async Task> SearchActor(string keyword, string provider, + bool lazy, CancellationToken cancellationToken) { var apiUrl = ComposeSearchApiUrl(ActorSearchApi, keyword, provider, lazy); return await GetDataFromApi>(apiUrl, cancellationToken); @@ -161,8 +161,8 @@ public static class ApiClient return await SearchMovie(keyword, provider, false, cancellationToken); } - public static async Task> SearchMovie(string keyword, string provider, bool lazy, - CancellationToken cancellationToken) + public static async Task> SearchMovie(string keyword, string provider, + bool lazy, CancellationToken cancellationToken) { var apiUrl = ComposeSearchApiUrl(MovieSearchApi, keyword, provider, lazy); return await GetDataFromApi>(apiUrl, cancellationToken); diff --git a/Jellyfin.Plugin.JavTube/Extensions/LogManagerExtension.cs b/Jellyfin.Plugin.JavTube/Extensions/LogManagerExtension.cs index 75699e7..8ae658a 100644 --- a/Jellyfin.Plugin.JavTube/Extensions/LogManagerExtension.cs +++ b/Jellyfin.Plugin.JavTube/Extensions/LogManagerExtension.cs @@ -1,5 +1,4 @@ #if __EMBY__ -using System.Reflection; using MediaBrowser.Model.Logging; namespace Jellyfin.Plugin.JavTube.Extensions; diff --git a/Jellyfin.Plugin.JavTube/ExternalIds/ExternalId.cs b/Jellyfin.Plugin.JavTube/ExternalIds/ExternalId.cs index f26b3a4..6cbd5ea 100644 --- a/Jellyfin.Plugin.JavTube/ExternalIds/ExternalId.cs +++ b/Jellyfin.Plugin.JavTube/ExternalIds/ExternalId.cs @@ -19,11 +19,11 @@ public class ExternalId : IExternalId public string UrlFormatString => "{0}"; #if !__EMBY__ - public ExternalIdMediaType? Type => ExternalIdMediaType.Movie; + public ExternalIdMediaType? Type => ExternalIdMediaType.Movie; #endif public bool Supports(IHasProviderIds item) { return item is Movie; } -} +} \ No newline at end of file