🚀 ytdl-material 1.3.8
An admin key for scripts, a library hash for media server plugins, and video comments in every language.
✨ What's new
- Server admin key. An optional key gives scripts administrator access to the API and to every account's library. Under Settings → Main → Server, select Generate below Port. The key is shown once, and Revoke invalidates it immediately. Send it as
Authorization: Bearer <key>. In multi-user mode, requests act on theadminlibrary unless you add?library=<account uid>, which reaches any account's library, private ones included. To manage the key in your deployment instead, setytdl_admin_api_key; while it is set, it takes precedence over a generated key. The key is unset until you generate or set one, and profile tokens cannot create one. Anyone who has it controls the server, so keep it as safe as the admin password. #743 - Library hash.
GET /api/getLibraryHashreturns one hash of the whole library. It changes when any account's files, playlists or subscriptions change, or an account's name or library sharing does. A client that keeps a copy of the library, such as a media server plugin, can poll it and read the catalog only when it changes. View counts, favorites and subscription refresh progress do not change it. In multi-user mode only an administrator, or the admin key, can call it. #744
The new jellyfin-plugin-ytdl-material uses both to bring a ytdl-material library into Jellyfin.
🛠️ Fixes
- Comments are translated. The comment settings, the Get comments button, the comment list and the Retrieve comments task's descriptions and results were English in every language in 1.3.7. They are now translated in all 30. Task titles, which come from the server, are still in English. #741
📦 Under the hood
- The server stores only a SHA-256 hash of a generated admin key, with a revocation ID, and compares keys in constant time, including one from the environment. #743
- Dependency refreshes. #742 #745
Full Changelog: v1.3.7...v1.3.8
Changes by @voc0der.