mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-12 01:03:26 +01:00
fix resolution in photo provider
This commit is contained in:
@@ -53,6 +53,13 @@ namespace MediaBrowser.Controller.FileOrganization
|
||||
/// <returns>FileOrganizationResult.</returns>
|
||||
FileOrganizationResult GetResult(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the result by source path.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns>FileOrganizationResult.</returns>
|
||||
FileOrganizationResult GetResultBySourcePath(string path);
|
||||
|
||||
/// <summary>
|
||||
/// Saves the result.
|
||||
/// </summary>
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace MediaBrowser.Controller.Providers
|
||||
public interface IRemoteSearchProvider<TLookupInfoType>
|
||||
where TLookupInfoType : ItemLookupInfo
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
Task<IEnumerable<SearchResult<TLookupInfoType>>> GetSearchResults(TLookupInfoType searchInfo, CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
@@ -29,4 +31,21 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
public string ImageUrl { get; set; }
|
||||
}
|
||||
|
||||
public class RemoteSearchQuery<T>
|
||||
where T : ItemLookupInfo
|
||||
{
|
||||
public T SearchInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If set will only search within the given provider
|
||||
/// </summary>
|
||||
public string SearchProviderName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [include disabled providers].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [include disabled providers]; otherwise, <c>false</c>.</value>
|
||||
public bool IncludeDisabledProviders { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user