mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #5943] [MERGED] Nullability handling for device profile classes #10560
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#10560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5943
Author: @Maxr1998
Created: 5/1/2021
Status: ✅ Merged
Merged: 5/4/2021
Merged by: @Bond-009
Base:
master← Head:device-profile-defaults📝 Commits (3)
70771fdNullability handling for device profile classes244ad5bApply review feedbackb2bb062Revert shortened 'is ... or' check📊 Changes
6 files changed (+115 additions, -124 deletions)
View changed files
📝
Emby.Dlna/Didl/DidlBuilder.cs(+19 -7)📝
Jellyfin.Api/Controllers/UniversalAudioController.cs(+3 -3)📝
MediaBrowser.Model/Dlna/ContainerProfile.cs(+19 -44)📝
MediaBrowser.Model/Dlna/DeviceProfile.cs(+48 -60)📝
MediaBrowser.Model/Dlna/DirectPlayProfile.cs(+5 -4)📝
MediaBrowser.Model/Dlna/TranscodingProfile.cs(+21 -6)📄 Description
Refactored some classes in the device profile model to handle nullability and added
DefaultValueandRequiredattributes for the generated API.Some properties (like
MinSegmentsinTranscodingProfile) couldn't be made nullable as that would break parsing device profile XMLs.I also moved some initializers directly to the variables, if constructor assignment is preferred I can also move them back.
Also fixed a bug in the
ContainsContainermethod, passing a null/emptyprofileContainerswould have caused the method to always return true, which seems to be wrong. Now it properly returns the correct value according toisNegativeList.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.