Minor fixes

This commit is contained in:
xjasonlyu
2022-05-28 22:56:40 +08:00
parent abbc059a12
commit 7ecd79b38a
2 changed files with 3 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
#if __EMBY__
using Jellyfin.Plugin.JavTube.Extensions;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Logging;
#else
using Microsoft.Extensions.Logging;
#endif
using Jellyfin.Plugin.JavTube.Extensions;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Providers;

View File

@@ -105,9 +105,9 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
LogInfo("Search for movie: {0}", pm.Id);
var results = new List<RemoteSearchResult>();
var movies = await ApiClient.SearchMovie(pm.Id, pm.Provider, cancellationToken);
var searchResults = await ApiClient.SearchMovie(pm.Id, pm.Provider, cancellationToken);
foreach (var m in movies)
foreach (var m in searchResults)
{
var result = new RemoteSearchResult
{