diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-19 11:24:06 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-19 11:24:06 -0500 |
| commit | 411ce2175102c7e37546971b7f07f593260732c3 (patch) | |
| tree | dff57cc6846e965a8431f324cdf253879848ca5a /MediaBrowser.Controller | |
| parent | 950623b95d75b292a3b7a6dea50e8fb1c3ea6581 (diff) | |
fix resolution in photo provider
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/FileOrganization/IFileOrganizationService.cs | 7 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs | 19 |
2 files changed, 26 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/FileOrganization/IFileOrganizationService.cs b/MediaBrowser.Controller/FileOrganization/IFileOrganizationService.cs index 6c0a73b8a1..ff22b0cdc9 100644 --- a/MediaBrowser.Controller/FileOrganization/IFileOrganizationService.cs +++ b/MediaBrowser.Controller/FileOrganization/IFileOrganizationService.cs @@ -54,6 +54,13 @@ namespace MediaBrowser.Controller.FileOrganization 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> /// <param name="result">The result.</param> diff --git a/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs b/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs index 065017cce4..2684900793 100644 --- a/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs +++ b/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs @@ -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; } + } } |
