9 Commits
Author SHA1 Message Date
Gitea Actions bea4d931c6 Update manifest.json for latest build (49c7077)
🚀 Release Plugin / build-and-release (push) Successful in 37s
2026-06-12 18:26:36 +00:00
dtourolle 49c7077e23 bump server version
🏗️ Build Plugin / build (push) Successful in 33s
Latest Release / latest-release (push) Successful in 26s
🧪 Test Plugin / test (push) Successful in 18s
2026-06-12 20:25:32 +02:00
Gitea Actions ff339b681b Update manifest.json for latest build (0e6b03b) 2026-06-12 18:17:26 +00:00
dtourolle 0e6b03be15 fancier overlay
🏗️ Build Plugin / build (push) Successful in 21s
Latest Release / latest-release (push) Successful in 23s
🧪 Test Plugin / test (push) Successful in 18s
2026-06-12 20:16:39 +02:00
Gitea Actions 772babe9bc Update manifest.json for version 0.0.1 2026-06-12 18:11:18 +00:00
Gitea Actions f8365a5b58 Update manifest.json for latest build (4b3b64b) 2026-06-12 18:10:35 +00:00
dtourolle 4b3b64bd7e json copying
🏗️ Build Plugin / build (push) Successful in 22s
Latest Release / latest-release (push) Successful in 28s
🧪 Test Plugin / test (push) Successful in 17s
🚀 Release Plugin / build-and-release (push) Successful in 27s
debugging overlay
2026-06-12 20:09:36 +02:00
Gitea Actions abad55788d Update manifest.json for version 0.0.0 2026-06-12 17:05:10 +00:00
Gitea Actions dea172d990 Update manifest.json for latest build (51a7365) 2026-06-12 17:04:27 +00:00
5 changed files with 145 additions and 20 deletions
@@ -11,10 +11,10 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.9.11" > <PackageReference Include="Jellyfin.Controller" Version="10.11.5" >
<ExcludeAssets>runtime</ExcludeAssets> <ExcludeAssets>runtime</ExcludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Jellyfin.Model" Version="10.9.11"> <PackageReference Include="Jellyfin.Model" Version="10.11.5">
<ExcludeAssets>runtime</ExcludeAssets> <ExcludeAssets>runtime</ExcludeAssets>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
@@ -37,5 +37,6 @@ public class TruthActor
/// Gets the list of [start_sec, end_sec] windows during which the actor is on screen. /// Gets the list of [start_sec, end_sec] windows during which the actor is on screen.
/// </summary> /// </summary>
[JsonPropertyName("scenes")] [JsonPropertyName("scenes")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public Collection<double[]> Scenes { get; } = new(); public Collection<double[]> Scenes { get; } = new();
} }
+1
View File
@@ -37,5 +37,6 @@ public class TruthFile
/// Gets the list of actors detected in the film, each with their on-screen scene windows. /// Gets the list of actors detected in the film, each with their on-screen scene windows.
/// </summary> /// </summary>
[JsonPropertyName("actors")] [JsonPropertyName("actors")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public Collection<TruthActor> Actors { get; } = new(); public Collection<TruthActor> Actors { get; } = new();
} }
+107 -16
View File
@@ -2,11 +2,49 @@
'use strict'; 'use strict';
var POLL_INTERVAL_MS = 1000; var POLL_INTERVAL_MS = 1000;
var OVERVIEW_MAX_LENGTH = 160;
var overlayEl = null; var overlayEl = null;
var personCache = {};
function getItemIdFromHash() { function truncate(text, maxLength) {
var match = window.location.hash.match(/[?&]id=([0-9a-fA-F-]+)/); if (text.length <= maxLength) {
return match ? match[1] : null; return text;
}
return text.slice(0, maxLength).trim() + '…';
}
function getPerson(jellyfinId) {
if (personCache[jellyfinId]) {
return personCache[jellyfinId];
}
var promise = window.ApiClient.getItem(window.ApiClient.getCurrentUserId(), jellyfinId)
.catch(function () {
return null;
});
personCache[jellyfinId] = promise;
return promise;
}
function getNowPlaying() {
if (!window.ApiClient) {
return Promise.reject(new Error('no ApiClient'));
}
var url = window.ApiClient.getUrl('Sessions', { DeviceId: window.ApiClient.deviceId() });
return window.ApiClient.ajax({ url: url, type: 'GET', dataType: 'json' }).then(function (sessions) {
var session = sessions && sessions[0];
if (!session || !session.NowPlayingItem || !session.PlayState) {
return null;
}
return {
itemId: session.NowPlayingItem.Id,
positionSeconds: (session.PlayState.PositionTicks || 0) / 10000000
};
});
} }
function removeOverlay() { function removeOverlay() {
@@ -42,13 +80,66 @@
actors.forEach(function (actor) { actors.forEach(function (actor) {
var card = document.createElement('div'); var card = document.createElement('div');
card.style.background = 'rgba(0, 0, 0, 0.7)'; card.className = 'jrayActorCard';
card.style.background = 'rgba(0, 0, 0, 0.75)';
card.style.color = '#fff'; card.style.color = '#fff';
card.style.padding = '6px 12px'; card.style.padding = '8px 12px';
card.style.borderRadius = '4px'; card.style.borderRadius = '6px';
card.style.fontSize = '14px'; card.style.display = 'flex';
card.textContent = actor.name; card.style.alignItems = 'center';
card.style.gap = '10px';
card.style.maxWidth = '320px';
var textBlock = document.createElement('div');
var name = document.createElement('div');
name.style.fontWeight = 'bold';
name.style.fontSize = '14px';
name.textContent = actor.name;
textBlock.appendChild(name);
card.appendChild(textBlock);
overlayEl.appendChild(card); overlayEl.appendChild(card);
if (!actor.jellyfin_id || !window.ApiClient) {
return;
}
card.style.pointerEvents = 'auto';
card.style.cursor = 'pointer';
card.addEventListener('click', function (event) {
event.stopPropagation();
window.location.hash = '#/details?id=' + actor.jellyfin_id;
});
getPerson(actor.jellyfin_id).then(function (person) {
if (!person || !overlayEl || !overlayEl.contains(card)) {
return;
}
if (person.ImageTags && person.ImageTags.Primary) {
var img = document.createElement('img');
img.src = window.ApiClient.getImageUrl(actor.jellyfin_id, {
type: 'Primary',
maxHeight: 80,
tag: person.ImageTags.Primary
});
img.style.height = '80px';
img.style.width = 'auto';
img.style.borderRadius = '4px';
img.style.objectFit = 'cover';
card.insertBefore(img, textBlock);
}
if (person.Overview) {
var overview = document.createElement('div');
overview.style.fontSize = '12px';
overview.style.opacity = '0.85';
overview.style.marginTop = '4px';
overview.textContent = truncate(person.Overview, OVERVIEW_MAX_LENGTH);
textBlock.appendChild(overview);
}
});
}); });
container.appendChild(overlayEl); container.appendChild(overlayEl);
@@ -72,14 +163,14 @@
}); });
} }
function onPause(event) { function onPause() {
var video = event.target; getNowPlaying().then(function (info) {
var itemId = getItemIdFromHash(); if (info) {
if (!itemId) { fetchContext(info.itemId, info.positionSeconds);
return; }
} }, function () {
// ApiClient unavailable or request error - fail silently, never break playback.
fetchContext(itemId, video.currentTime); });
} }
function onPlay() { function onPlay() {
+34 -2
View File
@@ -12,8 +12,40 @@
"changelog": "Latest Build", "changelog": "Latest Build",
"targetAbi": "10.9.0.0", "targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip", "sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip",
"checksum": "d6f05de428a51573f020c06651245e69", "checksum": "2f8beef54c03cec92a17431615cba604",
"timestamp": "2026-06-12T16:53:59Z" "timestamp": "2026-06-12T18:26:36Z"
},
{
"version": "0.0.1",
"changelog": "Release 0.0.1",
"targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/v0.0.1/jray_0.0.1.0.zip",
"checksum": "6c0e71d77ebac619920cf93a2c330b8f",
"timestamp": "2026-06-12T18:11:18Z"
},
{
"version": "0.0.0.0",
"changelog": "Latest Build",
"targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip",
"checksum": "6ed76e7fea217cda914a6610c48d7d30",
"timestamp": "2026-06-12T18:10:35Z"
},
{
"version": "0.0.0",
"changelog": "Release 0.0.0",
"targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/v0.0.0/jray_0.0.0.0.zip",
"checksum": "fd92458f741b8f7aa0b77da04cbc6a43",
"timestamp": "2026-06-12T17:05:10Z"
},
{
"version": "0.0.0.0",
"changelog": "Latest Build",
"targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip",
"checksum": "3650af90fd163042af65cc702d618506",
"timestamp": "2026-06-12T17:04:26Z"
} }
] ]
} }