There have been several changes to plugins for the new release. Here's a quick post going over the biggest updates for developers and users alike.
The most noticable change for everyone is that third party plugin repositories are now available! You can access the current list at Dashboard -> Plugins -> Repositories, and items can be added or removed as desired. Even the official repository can be removed if you'd prefer to avoid external calls to our server.
For developers, the only required change is a JSON manifest at any location with versions that point to binary releases at any location. We don't require any specific method for hosting these files, as that would go against the ideals of the project. The official repository uses nginx for the manifest and GitHub Releases for the binaries, but you could potentially host the manifest on GitHub as well. Here's an example manifest with all the properties. Please note that the GUID must be unique (both in the manifest and the plugin itself) if you want to avoid conflicts with other plugins.
"description": "This plugin supports several different metadata providers and options for organizing your collection.",
"overview": "Manage Your Anime in Jellyfin",
"changelog": "bug fixes and improvements",
"timestamp": "2020-03-27 06:02:58",
The official repository manifest for stable plugins can be used for more examples. You can also find the deprecated manifest on the same domain for the old format. However, all new plugin updates (on the official repository) will go to the new manifest, so older verions of Jellyfin won't receive plugin updates. Plugins do have official documentation on our DocFX instance. Please be aware that our documentation is still a work in progress, since a lot of the C# code still has very little information for tools like this. Things are improving thanks to the diligent server team though, who have been slowly adding information throughout the codebase.
One excellent tool that might help with repository management is jellyfin-plugin-repository-manager by Oddstr13, a frequent contributor. He did mention that his tool works much better with nginx than GitHub releases, but feel free to check it out! Another useful tool might be the jellyfin-build repository, which used to be the method used for updates on the official repository. We'll probably be migrating to the repository manager linked above though, since most of the other build systems have moved to Azure.
There are always a few changes to the ABI you might want to know about if you maintain a plugin. I'll include the most important ones for 10.6.0 here to hopefully reduce any issues with the update.
There were also several changes to the C# ABI that might affect your plugin. The most troublesome is probably the ILogger tweaks, which were made to improve the server logs by appending the class name to every line. You'll also find quite a few changes caused by the new database migration (Jellyfin.Data is the new namespace for these objects) and a few unrelated items.
IExternalID.Name -> IExternalID.ProviderName
MediaBrowser.Controller.Entities.User -> Jellyfin.Data.Entities.User
MetadataProviders -> MetadataProvider
CompressionMethod -> CompressionMethods
RequestContentBytes = request -> RequestContent = Encoding.UTF8.GetString(request)
User.Name -> User.Username
item.GetDisplayExtras() -> item.GetExtras(BaseItem.DisplayExtraTypes)
user.RootFolder -> libraryManager.GetUserRootFolder()
Third party repositories are the first step in a larger plan to vastly increase plugin usage within the codebase. They will allow anyone to maintain their own plugin and push updates as quickly as they want, without having to deal with a centralized system. It also gives users the power to reduce their reliance on an internet connection by allowing all repositories to be removed at will.
We understand some of these changes might be annoying to update within your plugin, but hopefully that will also see an improvement very soon. The next goal (now that more than one repository can be used at the same time) will be an unstable repository for plugins. This will fix the long-standing request for better plugin support on the unstable version, which has been a blocker for many users. It will also have the side effect of requiring an unstable NuGet repository for the C# ABI, thus helping third party plugin developers test their plugins against any changes to the ABI before a server update has landed.
If you develop a plugin (or client) and would like to be included in our mailing list for third party developers, please contact us through Matrix or send an email to get the details. The main goal here is excellent support for plugins and unofficial clients, so if you have any suggestions definitely contact us on one of our public forums. Hopefully, the C# ABI will stabilize over time and huge changes will become more infrequent so we can focus on making plugins as great as possible!