diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-11-12 12:17:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-12 12:17:46 +0100 |
| commit | 4288106acdcd36d6d18c9f1be884f791e4e5170b (patch) | |
| tree | 686c1c708f189663b86d92c512dc0bcfd8b1aadc /MediaBrowser.Model/Search/SearchQuery.cs | |
| parent | 88873b6e9eedd1b600bd17c56ee66109d2ef566d (diff) | |
| parent | 453c65d6193ff9745d03e043725fd67712aaec62 (diff) | |
Merge pull request #9762 from crobibero/media-type
Convert string MediaType to enum MediaType
Diffstat (limited to 'MediaBrowser.Model/Search/SearchQuery.cs')
| -rw-r--r-- | MediaBrowser.Model/Search/SearchQuery.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Search/SearchQuery.cs b/MediaBrowser.Model/Search/SearchQuery.cs index 1caed827f..b91fd8657 100644 --- a/MediaBrowser.Model/Search/SearchQuery.cs +++ b/MediaBrowser.Model/Search/SearchQuery.cs @@ -16,7 +16,7 @@ namespace MediaBrowser.Model.Search IncludePeople = true; IncludeStudios = true; - MediaTypes = Array.Empty<string>(); + MediaTypes = Array.Empty<MediaType>(); IncludeItemTypes = Array.Empty<BaseItemKind>(); ExcludeItemTypes = Array.Empty<BaseItemKind>(); } @@ -55,7 +55,7 @@ namespace MediaBrowser.Model.Search public bool IncludeArtists { get; set; } - public string[] MediaTypes { get; set; } + public MediaType[] MediaTypes { get; set; } public BaseItemKind[] IncludeItemTypes { get; set; } |
