Explorar o código

Save TVChannel Height if set (#8777)

Co-authored-by: Cody Robibero <cody@robibe.ro>
SenorSmartyPants %!s(int64=2) %!d(string=hai) anos
pai
achega
369c7f1451
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Jellyfin.Api/Controllers/ItemUpdateController.cs

+ 5 - 0
Jellyfin.Api/Controllers/ItemUpdateController.cs

@@ -246,6 +246,11 @@ public class ItemUpdateController : BaseJellyfinApiController
             episode.AirsBeforeSeasonNumber = request.AirsBeforeSeasonNumber;
         }
 
+        if (request.Height is not null && item is LiveTvChannel channel)
+        {
+            channel.Height = request.Height.Value;
+        }
+
         item.Tags = request.Tags;
 
         if (request.Taglines is not null)