Upgrade to .NET 9 and Jellyfin 10.11 compatibility #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the plugin to support .NET 9 and Jellyfin 10.11, addressing breaking API changes introduced in the latest Jellyfin release.
Changes
Framework and Dependencies
net8.0tonet9.0Jellyfin.Controllerfrom10.9.9to10.11.0-rc8Jellyfin.Modelfrom10.9.9to10.11.0-rc8System.Net.Http.Jsonfrom8.0.1to9.0.0for .NET 9 compatibility10.11.0.0net9.0Breaking API Changes in Jellyfin 10.11
User Entity Relocation
Userentity has been moved fromJellyfin.Data.EntitiestoJellyfin.Database.Implementations.EntitiesPermissionKindenum moved toJellyfin.Database.Implementations.EnumsHasPermissionmethod is now an extension method inJellyfin.Data.UserEntityExtensionsTask Trigger API Changes
TaskTriggerInfo.TriggerIntervalconstant replaced withTaskTriggerInfoType.IntervalTriggerenum valueEntity Query API Changes
GetChildren(User, bool)method signature updated to require anInternalItemsQueryparameterGetChildren(_adminUser, true, new InternalItemsQuery())Verification
The plugin builds successfully with .NET 9 and all compilation errors related to Jellyfin 10.11 breaking changes have been resolved. The changes are minimal and surgical, affecting only the necessary compatibility updates without altering the plugin's functionality.
Note
This update uses Jellyfin 10.11.0-rc8 (release candidate) as this is the latest available version. The plugin will be compatible with the stable 10.11 release once available.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.