aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Search
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-11-12 12:17:46 +0100
committerGitHub <noreply@github.com>2023-11-12 12:17:46 +0100
commit4288106acdcd36d6d18c9f1be884f791e4e5170b (patch)
tree686c1c708f189663b86d92c512dc0bcfd8b1aadc /MediaBrowser.Model/Search
parent88873b6e9eedd1b600bd17c56ee66109d2ef566d (diff)
parent453c65d6193ff9745d03e043725fd67712aaec62 (diff)
Merge pull request #9762 from crobibero/media-type
Convert string MediaType to enum MediaType
Diffstat (limited to 'MediaBrowser.Model/Search')
-rw-r--r--MediaBrowser.Model/Search/SearchHint.cs4
-rw-r--r--MediaBrowser.Model/Search/SearchQuery.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Search/SearchHint.cs b/MediaBrowser.Model/Search/SearchHint.cs
index 3fa7f3d56..fd911dbed 100644
--- a/MediaBrowser.Model/Search/SearchHint.cs
+++ b/MediaBrowser.Model/Search/SearchHint.cs
@@ -16,7 +16,7 @@ namespace MediaBrowser.Model.Search
{
Name = string.Empty;
MatchedTerm = string.Empty;
- MediaType = string.Empty;
+ MediaType = Jellyfin.Data.Enums.MediaType.Unknown;
Artists = Array.Empty<string>();
}
@@ -115,7 +115,7 @@ namespace MediaBrowser.Model.Search
/// Gets or sets the type of the media.
/// </summary>
/// <value>The type of the media.</value>
- public string MediaType { get; set; }
+ public MediaType MediaType { get; set; }
/// <summary>
/// Gets or sets the start date.
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; }