fix resolution in photo provider

This commit is contained in:
Luke Pulverenti
2014-02-19 11:24:06 -05:00
parent 950623b95d
commit 411ce21751
9 changed files with 173 additions and 90 deletions

View File

@@ -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>

View File

@@ -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; }
}
}