Repository navigation
Releases
Colorist 0.4.2.0
The barcode now closes the page instead of floating below it.
It sits at the foot of the content, directly under the last row of cards, rather than in the page background beneath everything with a band of empty page above it — which read as the strip having come loose and landed underneath rather than as the end of the page.
The gap it closes is measured rather than assumed. Most of it was never the strip's own margin: it is what the last section leaves behind it, written in em, and therefore a different number of pixels at a different font size or window width. So it is measured on every render and every resize, the same way the gap at the bottom already was. The measurement resets itself before reading, so a resize cannot collapse the gap twice and walk the strip up the page, and a measurement that comes back absurd is ignored rather than acted on — doing nothing is much better than dragging the strip up over the cards.
Nothing needs regenerating, and no settings changed.
To install: add https://raw.githubusercontent.com/nitramivel/jellyfin-colorist/main/manifest.json as a plugin repository, or upgrade from the catalogue.
Colorist 0.4.1.0
Click the barcode to play from that point.
Hovering already told you where in the film a colour came from. Now a click starts the item playing from there, in the tab you are looking at, and the readout says "Playing from 24:22…" while the command is on its way — it makes a round trip through the server and back, and a click that sat silent would look like a broken one.
It maps the sampled window rather than the whole runtime, so the head and tail trims are accounted for and the point you click is the point you get. Two deliberate quietnesses: the strip only takes a pointer cursor once it knows the item's runtime, so one that could not work out a time stays an ordinary picture instead of inviting a click that would do nothing; and if the command cannot be sent, nothing happens at all rather than an error landing on the page.
Nothing needs regenerating. The strip is still drawn from the colour data already on disk.
Worth knowing: playback is started the way Jellyfin's own remote control starts it — a play command posted to this device's session, which arrives back over the websocket the page already holds. That means it needs to be able to look up your session, so on a server that restricts session listing, a viewer who is not the owner may find the click does nothing. This path was exercised against a stubbed client, not a live session, so it is the part of this release most likely to want a fix.
To install: add https://raw.githubusercontent.com/nitramivel/jellyfin-colorist/main/manifest.json as a plugin repository, or upgrade from the catalogue.
Colorist 0.4.0.0
Two additions to the strip.
A gradient style. The strip style is now a choice of three. Stripes draws one hard-edged column per sample. Blended fades each column into the next. Both still show a band per cut, because every sample is reproduced exactly at its own position — softening the joins cannot remove that. Gradient averages the samples down to a few colours first, sixteen by default and configurable, and interpolates between those, so the whole bar reads as one sweep of colour through the film.
The averaging happens in linear light rather than perceptually, which is the opposite of how the blending works and is deliberate: a mean combines light, and light adds linearly. Averaging the encoded values instead is the usual downscaling mistake and darkens everything — half black and half white comes out at 128 rather than the 188 that reflects half the light. It also means the browser and the server reduce to identical colours, so the strip on the page and the optional PNG are the same picture rather than nearly the same one.
A hover readout. Moving the pointer across the strip on a detail page shows the time in the film that colour was sampled from, with a hairline marking the spot. It maps the sampled window rather than the whole runtime, so the head and tail trims are accounted for — reading the bar as nought-to-runtime is several minutes out on a feature at the defaults. The item's runtime is fetched the first time you hover a strip rather than on every page load, so a page nobody hovers costs nothing extra. If you change the trim settings without regenerating, the readout drifts by the difference, since the stored file holds colours and nothing else.
Existing servers keep whichever blending they had: the old setting is read once and upgraded, and turning blending off stays off. Nothing needs regenerating for any of this — all three styles and the readout are drawn from the colour data already on disk.
274 tests pass. The two settings this adds reach the browser through the same substitution the display height uses, and the client and server reduction were checked against each other byte for byte.
To install: add https://raw.githubusercontent.com/nitramivel/jellyfin-colorist/main/manifest.json as a plugin repository, or upgrade from the catalogue.
Colorist 0.3.4.0
Settings page appearance.
The action buttons now render as Jellyfin buttons. Generate for the whole library, Build it and Delete saved barcodes were coming out as bare browser buttons — bevelled border, 13px Arial, square corners — next to identically-authored ones that looked right. Jellyfin's button styling hangs entirely on a class the dashboard adds at runtime through document.registerElement, a custom-elements API browsers have removed; it survives only via a polyfill, and only for the elements that polyfill happens to see. The page now carries the class itself, generated buttons included, so every button matches whatever the theme makes of the rest.
The delete button is an ordinary button at rest. Its hard-coded red was a second button style on a page that wants one, and a custom dashboard theme was overriding it anyway. The warning keeps the card it sits in and moves into the armed state, which says what the next click will do.
The tab bar has a baseline. Without one, the selected tab's underline was a short line floating under a word rather than a selected tab. The bar now matches Curator's and Concierge's.
No behaviour changes. 245 tests pass.
To install: add https://raw.githubusercontent.com/nitramivel/jellyfin-colorist/main/manifest.json as a plugin repository, or upgrade from the catalogue.
v0.3.3.0 — buttons restored
Fixes the settings page buttons, which 0.3.2.0 left unstyled.
Jellyfin's button theming keys on the is="emby-button" attribute. 0.3.2.0 removed it on the theory that customized built-in elements never upgrade inside innerHTML — true, but it confuses behaviour with appearance. The upgrade supplies the ripple; the CSS applies from the attribute either way. Removing it stripped the styling from every button on the page.
Every button now carries is="emby-button" class="raised" with its label in a <span>, generated ones included, as Curator does throughout.
The tab strip is now a row of tabs, not a row of raised buttons: plain buttons with role="tab", underlined to show which panel you are looking at. A tab labels where you are rather than being a pressable control, and Jellyfin's button theming fights that — the same conclusion Curator reached.
245 tests pass. Tab switching and the button markup were verified in a browser.
🤖 Generated with Claude Code
v0.3.2.0 — matching buttons, retroactive ordering, honest cancellation
Three fixes to the Run tab.
The action buttons did not match the ones beside them
Generate for the whole library, Build it and Delete saved barcodes still looked unlike the Details and Hide buttons in the run list.
Customized built-in elements (is="emby-button") do not upgrade when they arrive through innerHTML, so the generated toggles have always been plain <button class="raised"> — while the static buttons carried the attribute and were upgraded. Two kinds of button on one card, styled differently for a reason nobody chose. The action buttons now drop the attribute and match the pair that looked right. The tab bar and the Save submit keep it; those are static and meant to read as dashboard chrome.
Old run history now reorders too
Ordering by when a run started only applied to runs recorded after 0.3.1.0, because earlier files are named by run ID alone and fall back to the file's modification time — which is when the run finished. A three-hour run started at nine still sorted above a two-minute one started at ten.
Those files are now read and renamed the first time the list is shown after upgrading, so existing history sorts correctly as well. It costs a handful of reads once and nothing thereafter; anything that will not move keeps its old name and its old ordering, which is what it had anyway.
A cancelled run said "Failed"
Generation spends its whole life inside the loop that hands items to workers — that loop waits there whenever every worker is busy, so it is where cancellation actually arrives. Only the await at the end was guarded, so the cancellation escaped run.Cancel() entirely and the run was recorded by the safety net that catches a task ending without reporting anything: failed, with a message saying so.
The loop is now inside the same guard, and a test pins that a cancelled run survives disposal as Cancelled.
245 tests pass, up from 243. Button construction was verified in a browser — every button on the page is now the same element with the same padding and type, with no is attribute left on any of them.
🤖 Generated with Claude Code
v0.3.1.0 — CPU share, and a run list that stays put
Control how much of the machine a run uses
Run → Share of the machine to use, a slider from 5% to 100%, defaulting to 25% — which is exactly what the old fixed processors / 4 rule worked out to, so upgrading does not change how hard your server gets worked. The page tells you what it resolves to as you drag it:
25% of 20 processors — 5 items at a time
50% of 20 processors — 10 items at a time
One ffmpeg runs per item and each is capped at one decoder thread, so items in flight is close to cores in use — which is what makes a percentage meaningful rather than decorative.
It is a budget, not a hard ceiling. What holds the line when somebody starts watching something is the below-normal priority every ffmpeg already runs at; this governs how much of an idle machine a run helps itself to. Deliberately not processor affinity: pinning workers to fixed cores would stop the scheduler moving them out of a transcode's way, making playback worse in exactly the case the priority exists to protect.
Typing a number into Items at once still overrides the share outright, and the slider disables itself to say so. In a container the share is of the CPUs Jellyfin has been given, not the host's.
Fixed
- Scrolling a run's details snapped back to the top every couple of seconds. Refreshing the live figures rebuilt the whole list, which destroyed the element being scrolled and recreated it at zero. The list is now patched in place — new rows appended, numbers rewritten — and rebuilt only when its shape actually changes. The one rebuild that remains, when a run ends, puts the scroll position back.
- A run's details went permanently blank when that run finished while the drawer was open. The stale half-finished document was dropped, correctly, but nothing fetched the final one.
- Runs are ordered by when they started, not by when their file was last written — which is effectively when they finished. Those disagree whenever runs differ in length, so a three-hour run started at nine could sort above a two-minute one started at ten. The start time now lives in the file name, so ordering is a property of the run rather than of the filesystem. Run files written by 0.3.0.0 keep working.
243 tests pass, up from 214. The CPU budget has its own suite, including one pinning the new default to within a worker of the old hardcoded rule across every core count from 1 to 64. The scroll behaviour was verified in a browser across a live run's polls, the run ending, and after — position held throughout while rows grew.
🤖 Generated with Claude Code
v0.3.0.0 — run logs, live progress, time remaining
Every run now writes a log, and the settings page shows the live one as it happens.
Live progress
Colorist → Run carries a progress bar while a run is going, updating every two seconds with what is being sampled right now, how far through it is, how many items a minute it is getting through, and how long is left. It is served from the run's in-memory state, so the poll costs a lock rather than re-reading a file that grows with every item.
The bar pulses while nothing has completed yet — a run's first film can take minutes, and a bar sitting still at 0% is otherwise indistinguishable from a hang.
The estimate
Built from throughput, not from an average item duration. Items are sampled several at a time, so a mean would overstate the answer by the concurrency factor. It counts completions per wall-clock second over the last twenty, which:
- follows a changing pace — Jellyfin hands items over grouped by library, so a run genuinely speeds up crossing from feature films into half-hour episodes, and an all-run average would spend the second half correcting an estimate formed during the first;
- notices a stall — it measures against the current moment rather than the last completion, so a run wedged on one enormous file shows a growing estimate instead of counting down through a hang.
Nothing is shown until three items have finished; the first two are mostly startup cost, and a wildly wrong first estimate is worse than none.
Run history
The last five runs, newest first, as collapsible rows. Open one for every item it touched: outcome, duration, frames sampled and stripes produced, the crop applied, any HDR conversion, whether it landed beside the media or in the plugin's data directory, and the reason for anything that failed. Delete runs are recorded the same way.
Runs live in <data>/colorist/runs/ and rotate at twenty. A run whose file still says running with no process behind it — a server restarted mid-run — reads back as abandoned, worked out on read, because the one thing a dead process cannot do is update its own file to say it died.
Fixed
- The progress panel could fail to appear at all. Pressing Generate hands the job to Jellyfin's task manager and returns; the task begins a moment later. The page stopped polling the instant it saw an idle server, so the single poll after the button press landed in that gap and ended the loop exactly as the run began. It now polls through a grace period, and a generation counter stops overlapping poll chains from clearing each other's timers.
214 tests pass, up from 185. The estimate has its own suite — steady rates, a run that changes pace, a stalled run, completions landing on the same clock tick, and the refusal to guess beyond a fortnight. The page was driven in a browser against a stubbed client, including a stub that delays the run start the way a real server does, which is what surfaced the polling bug above. Selectors matching a real Jellyfin page remain unverified.
🤖 Generated with Claude Code
v0.2.1.0 — colour data, not a picture
Supersedes 0.2.0.0, which is folded into this release and removed from the catalogue — its changelog rendered as a blank space there.
Upgrading from 0.1.x: those barcodes are PNGs with no colour data behind them, and the colours cannot be recovered from a stretched, possibly blended image. Those items count as ungenerated and will be sampled again on the next run.
Fixed in 0.2.1.0
- Letterboxing never stuck. The setting came back blank after every save and quietly wiped itself. Jellyfin's JSON stack carries
JsonStringEnumConverter, soCropModearrives as"Auto", not1— the option values were numbers, nothing matched, and the next submit sentNaN. Option values are now the enum member names. A config left holding thenullfrom that bug resolves back to a real option rather than a blank. - Dropdowns rendered white instead of taking the dashboard's input colours (
emby-select-withcolor). - Action buttons were full-width bars. They are now inline and sized to their text, as in Curator. Save stays full width.
- The catalogue changelog for 0.2.0.0 showed a large blank space — it contained angle-bracketed text the dashboard parsed as a video element.
Colour data, not a picture
Barcodes are stored as the colours that were sampled: a small JSON sidecar with one packed hex triplet per stripe, about 6 KB for the default thousand columns. The detail page draws the strip from that in the browser, so stripe blending and display height apply at render time — changing either costs a page reload instead of another ffmpeg pass over the library.
The strip is fetched with a real Authorization header, so no access token travels in a URL, and an ungenerated item answers 404, which doubles as the existence check. Blended strips are interpolated perceptually in Oklab by the browser rather than through the dark seam plain sRGB blending puts at every transition.
A PNG can still be written alongside the data via Output → Also write a PNG. Off by default; nothing in Jellyfin reads it.
Deleting saved barcodes
Run → Delete saved barcodes, or the Delete Barcodes scheduled task. Removes what Colorist has written from library folders and from the plugin's data directory, across every movie and episode. Delete only the PNGs, keep the colour data is on by default. The button arms on the first click and fires on the second; read-only folders are logged and skipped.
Also
- The strip sat above the end of the detail page rather than flush with it.
- The settings page shows a title, the running plugin version and a description, with Save at the top.
185 tests pass. The settings page and strip rendering were exercised in a browser against a stubbed client; the selectors matching a real Jellyfin detail page remain unverified.
🤖 Generated with Claude Code
v0.2.0.0 — colour data, not a picture
Barcodes are now stored as the colours that were sampled, not as an image of them.
Upgrading: 0.1.x barcodes are PNGs with no colour data behind them, and the colours cannot be recovered from a stretched, possibly blended image. Those items count as ungenerated and will be sampled again on the next run. The leftover PNGs are harmless; the new delete button clears them out.
Colour data, not a picture
<video filename>-colorist.json — one packed hex triplet per stripe, about 6 KB for the default thousand columns:
{"v":1,"colors":"1a2b3c2f3d4e…"}The detail page draws the strip from that in the browser. Stripe blending and display height are applied when the page renders, so changing either costs a page reload instead of another ffmpeg pass over the whole library.
Two things fell out of it:
- No access token in a URL. The strip is fetched through
ApiClientwith a realAuthorizationheader. An<img>cannot carry one, which is why 0.1.1 had to appendapi_keyto the query string. - One request per page instead of two.
/Colorsanswers 404 for an ungenerated item, so the page no longer asks/Existsfirst.
Blended strips are interpolated perceptually — linear-gradient(to right in oklab, …) — rather than through the dark seam sRGB puts at every transition. Browsers predating the syntax fall back to a plain gradient.
A PNG can still be written alongside the data via Output → Also write a PNG. It is off by default and nothing in Jellyfin reads it; it exists for other software to open.
Deleting saved barcodes
Run → Delete saved barcodes, or the new Delete Barcodes scheduled task. Removes what Colorist has written from library folders and from the plugin's data directory, across every movie and episode.
Delete only the PNGs, keep the colour data is on by default — it clears out images an older version scattered through library folders while leaving measurements that cost hours of ffmpeg. The button arms on the first click and fires on the second. Read-only folders are logged and skipped, and the task reports how many files it actually removed.
Fixed
- The strip floated above the end of the detail page rather than sitting flush with it.
.pagecarriespadding-bottom: 5emplus the safe-area inset and the strip was inside it.
Settings page
A title, the running plugin version and a description at the top, with Save moved to the top of the form. The version badge doubles as a cache tell: a page served from a browser cache predating it renders nothing there, so a blank badge means a stale page rather than a stale server.
185 tests pass. Rendering was verified in a browser against a stubbed client and a page mimicking the 10.11 layout; the selectors matching a real Jellyfin page remain unverified.
🤖 Generated with Claude Code