2
0
Эх сурвалжийг харах

Fix namespace and add attribute

crobibero 4 жил өмнө
parent
commit
3bff1ff8a2

+ 2 - 1
Jellyfin.Api/Models/SessionDtos/ClientCapabilitiesDto.cs

@@ -1,9 +1,9 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
+using System.Text.Json.Serialization;
 using MediaBrowser.Common.Json.Converters;
 using MediaBrowser.Common.Json.Converters;
 using MediaBrowser.Model.Dlna;
 using MediaBrowser.Model.Dlna;
 using MediaBrowser.Model.Session;
 using MediaBrowser.Model.Session;
-using Newtonsoft.Json;
 
 
 namespace Jellyfin.Api.Models.SessionDtos
 namespace Jellyfin.Api.Models.SessionDtos
 {
 {
@@ -15,6 +15,7 @@ namespace Jellyfin.Api.Models.SessionDtos
         /// <summary>
         /// <summary>
         /// Gets or sets the list of playable media types.
         /// Gets or sets the list of playable media types.
         /// </summary>
         /// </summary>
+        [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
         public IReadOnlyList<string> PlayableMediaTypes { get; set; } = Array.Empty<string>();
         public IReadOnlyList<string> PlayableMediaTypes { get; set; } = Array.Empty<string>();
 
 
         /// <summary>
         /// <summary>