Compare commits

...

4 Commits

Author SHA1 Message Date
CodeDevMLH
bf72dc08a3 Update manifest.json for release v1.6.1.10 [skip ci] 2026-02-13 00:41:36 +00:00
CodeDevMLH
65a63b4aa0 Bump version to 1.6.1.10
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 50s
2026-02-13 01:40:48 +01:00
CodeDevMLH
a1df756c56 Enhance seasonal section input fields with improved layout and descriptions 2026-02-13 01:40:33 +01:00
CodeDevMLH
f2d383ec61 Refactor video playback logic in SlideshowManager for improved fallback handling 2026-02-13 01:36:26 +01:00
4 changed files with 36 additions and 24 deletions

View File

@@ -165,7 +165,7 @@
<div id="seasonalSectionsList"></div> <div id="seasonalSectionsList"></div>
<button is="emby-button" type="button" id="addSeasonBtn" class="raised emby-button" <button is="emby-button" type="button" id="addSeasonBtn" class="raised emby-button"
style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;"> style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;">
<i class="md-icon">add</i> <i class="material-icons" style="font-size: 24px;">add</i>
<span>Add Season</span> <span>Add Season</span>
</button> </button>
</div> </div>
@@ -574,21 +574,30 @@
return h; return h;
} }
div.innerHTML = ` div.innerHTML = '<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5em;">' +
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5em;"> ' <div style="flex-grow:1; margin-right:1em;">' +
<input is="emby-input" type="text" class="emby-input section-name" value="${data.Name}" placeholder="Season Name" style="flex: 1; margin-right: 1em; font-weight: bold;"> ' <input is="emby-input" type="text" class="emby-input section-name" value="' + (data.Name || '') + '" label="Season Name" />' +
<button type="button" class="raised emby-button remove-section" style="background: #a94442;">Remove</button> ' <div class="fieldDescription">Name of the season (e.g. Christmas).</div>' +
</div> ' </div>' +
<div style="margin-bottom: 0.5em; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em;"> ' <button type="button" class="raised emby-button remove-section" style="background: #a94442; min-width: unset;">Remove</button>' +
<span>From:</span> '</div>' +
${mkSelect(data.StartDay, days, 'start-day')} '<div style="margin-bottom: 1em;">' +
${mkSelect(data.StartMonth, months, 'start-month')} ' <label class="inputLabel" style="margin-bottom:0.5em; display:block;">Active Period</label>' +
<span style="margin-left: 1em;">To:</span> ' <div style="display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em;">' +
${mkSelect(data.EndDay, days, 'end-day')} ' <span>From:</span>' +
${mkSelect(data.EndMonth, months, 'end-month')} mkSelect(data.StartDay, days, 'start-day') +
</div> mkSelect(data.StartMonth, months, 'start-month') +
<textarea is="emby-textarea" class="emby-textarea section-ids" style="width: 100%; height: 80px; font-family: monospace;" placeholder="Media IDs...">${data.MediaIds || ''}</textarea> ' <span style="margin-left: 1em;">To:</span>' +
`; mkSelect(data.EndDay, days, 'end-day') +
mkSelect(data.EndMonth, months, 'end-month') +
' </div>' +
' <div class="fieldDescription">Date range (inclusive) when this content is active.</div>' +
'</div>' +
'<div>' +
' <label class="inputLabel" style="margin-bottom:0.5em; display:block;">Media IDs</label>' +
' <textarea is="emby-textarea" class="emby-textarea section-ids" style="width: 100%; height: 80px; font-family: monospace;">' + (data.MediaIds || '') + '</textarea>' +
' <div class="fieldDescription">Comma-separated list of Movie/Series/Collection IDs to show during this season.</div>' +
'</div>';
div.querySelector('.remove-section').addEventListener('click', function() { div.querySelector('.remove-section').addEventListener('click', function() {
div.remove(); div.remove();

View File

@@ -12,7 +12,7 @@
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> --> <!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
<Title>Jellyfin Media Bar Enhanced Plugin</Title> <Title>Jellyfin Media Bar Enhanced Plugin</Title>
<Authors>CodeDevMLH</Authors> <Authors>CodeDevMLH</Authors>
<Version>1.6.1.9</Version> <Version>1.6.1.10</Version>
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl> <RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
</PropertyGroup> </PropertyGroup>

View File

@@ -2722,9 +2722,6 @@ const SlideshowManager = {
endSeconds: player._endTime endSeconds: player._endTime
}); });
// Explicitly call playVideo to ensure it starts
player.playVideo();
if (STATE.slideshow.isMuted) { if (STATE.slideshow.isMuted) {
player.mute(); player.mute();
} else { } else {
@@ -2744,6 +2741,12 @@ const SlideshowManager = {
} }
}, 1000); }, 1000);
return true; return true;
} else if (player && typeof player.seekTo === 'function') {
// Fallback if loadVideoById is not available or videoId missing but player object exists
const startTime = player._startTime || 0;
player.seekTo(startTime);
player.playVideo();
return true;
} }
return false; return false;

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
"versions": [ "versions": [
{ {
"version": "1.6.1.9", "version": "1.6.1.10",
"changelog": "- fix tv mode issue\n- refactor video playback management", "changelog": "- fix tv mode issue\n- refactor video playback management",
"targetAbi": "10.11.0.0", "targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.6.1.9/Jellyfin.Plugin.MediaBarEnhanced.zip", "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.6.1.10/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "e6e3b72fe679d90137617d8a717592b8", "checksum": "c9d141755706571e2e1f6633e65ce983",
"timestamp": "2026-02-13T00:16:39Z" "timestamp": "2026-02-13T00:41:36Z"
}, },
{ {
"version": "1.6.0.2", "version": "1.6.0.2",