Compare commits

..

17 Commits

Author SHA1 Message Date
CodeDevMLH
cb0392eb0d Update manifest.json for release v1.6.13.4 [skip ci] 2026-02-04 15:51:34 +00:00
CodeDevMLH
ed13e05b82 Bump version to 1.6.13.4
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s
2026-02-04 16:50:44 +01:00
CodeDevMLH
310fb4d496 Rename SettingsManager to SeasonalSettingsManager and update related log messages 2026-02-04 16:50:26 +01:00
CodeDevMLH
78d25106db Update manifest.json for release v1.6.13.3 [skip ci] 2026-02-04 15:46:34 +00:00
CodeDevMLH
a328171a8a Auto-Update MediaBar Enhanced to v1.4.0.2
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 50s
2026-02-04 15:45:45 +00:00
CodeDevMLH
361559cbec Update manifest.json for release v1.6.13.3 [skip ci] 2026-02-04 15:22:39 +00:00
CodeDevMLH
e08bf66a53 Bump version to 1.6.13.3
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s
2026-02-04 16:21:48 +01:00
CodeDevMLH
d6ef81138d typo 2026-02-04 16:21:02 +01:00
CodeDevMLH
35f21e680a Update manifest.json for release v1.6.13.2 [skip ci] 2026-02-04 15:02:42 +00:00
CodeDevMLH
705fbaed9d Auto-Update MediaBar Enhanced to v1.4.0.1
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 49s
2026-02-04 15:01:55 +00:00
CodeDevMLH
9e52198ef7 Update manifest.json for release v1.6.13.2 [skip ci] 2026-02-04 15:01:13 +00:00
CodeDevMLH
b1943dfe17 Bump version to 1.6.13.2
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 53s
2026-02-04 16:00:20 +01:00
CodeDevMLH
c55e900c0f Enhance logging messages in SeasonalsManager for better clarity 2026-02-04 14:05:41 +01:00
CodeDevMLH
503e9addee Update manifest.json for release v1.6.13.1 [skip ci] 2026-02-04 12:50:35 +00:00
CodeDevMLH
d630fdd217 Auto-Update MediaBar Enhanced to v1.4.0.0
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 47s
2026-02-04 12:49:50 +00:00
CodeDevMLH
7e4a7c2a6e Update manifest.json for release v1.6.13.1 [skip ci] 2026-02-04 12:47:05 +00:00
CodeDevMLH
1716a771f3 Auto-Update MediaBar Enhanced to v1.4.0.0
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 47s
2026-02-04 12:46:21 +00:00
3 changed files with 44 additions and 20 deletions

View File

@@ -12,7 +12,7 @@
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> --> <!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
<Title>Jellyfin Seasonals Plugin</Title> <Title>Jellyfin Seasonals Plugin</Title>
<Authors>CodeDevMLH</Authors> <Authors>CodeDevMLH</Authors>
<Version>1.6.13.1</Version> <Version>1.6.13.4</Version>
<RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl> <RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl>
</PropertyGroup> </PropertyGroup>

View File

@@ -1,4 +1,4 @@
/** /*
* Seasonals Plugin (Client Side Manager Logic) * Seasonals Plugin (Client Side Manager Logic)
*/ */
@@ -68,7 +68,7 @@ const ThemeConfigs = {
}, },
}; };
const SettingsManager = { const SeasonalSettingsManager = {
initialized: false, initialized: false,
config: null, config: null,
@@ -237,25 +237,25 @@ const SeasonalsManager = {
if (response.ok) { if (response.ok) {
this.config = await response.json(); this.config = await response.json();
window.SeasonalsPluginConfig = this.config; window.SeasonalsPluginConfig = this.config;
console.log('Seasonals Config loaded:', this.config); console.log('Seasonals: Seasonals Config loaded:', this.config);
} }
} catch (error) { } catch (error) {
console.error('Error fetching Seasonals config:', error); console.error('Seasonals: Error fetching Seasonals config:', error);
} }
// Initialize Settings UI // Initialize Settings UI
SettingsManager.init(this.config); SeasonalSettingsManager.init(this.config);
// User Preference Check // User Preference Check
const isEnabled = SettingsManager.getSetting('enabled', 'true') === 'true'; const isEnabled = SeasonalSettingsManager.getSetting('enabled', 'true') === 'true';
if (!isEnabled) { if (!isEnabled) {
console.log('Seasonals disabled by user preference.'); console.log('Seasonals: Disabled by user preference.');
return; return;
} }
// Determine Theme // Determine Theme
const themeName = this.selectTheme(); const themeName = this.selectTheme();
console.log(`Selected theme: ${themeName}`); console.log(`Seasonals: Selected theme: ${themeName}`);
if (!themeName || themeName === 'none') { if (!themeName || themeName === 'none') {
return; return;
@@ -267,9 +267,9 @@ const SeasonalsManager = {
selectTheme() { selectTheme() {
// Check local override // Check local override
const forcedTheme = SettingsManager.getSetting('theme', 'auto'); const forcedTheme = SeasonalSettingsManager.getSetting('theme', 'auto');
if (forcedTheme !== 'auto') { if (forcedTheme !== 'auto') {
console.log(`User forced theme: ${forcedTheme}`); console.log(`Seasonals: User forced theme: ${forcedTheme}`);
return forcedTheme; return forcedTheme;
} }
@@ -317,7 +317,7 @@ const SeasonalsManager = {
applyTheme(themeName) { applyTheme(themeName) {
const theme = ThemeConfigs[themeName]; const theme = ThemeConfigs[themeName];
if (!theme) { if (!theme) {
console.error(`Theme "${themeName}" not found.`); console.error(`Seasonals: Theme "${themeName}" not found.`);
return; return;
} }
@@ -326,7 +326,7 @@ const SeasonalsManager = {
if (theme.css) this.loadResource('css', theme.css); if (theme.css) this.loadResource('css', theme.css);
if (theme.js) this.loadResource('js', theme.js); if (theme.js) this.loadResource('js', theme.js);
console.log(`Theme "${themeName}" applied.`); console.log(`Seasonals: Theme "${themeName}" applied.`);
}, },
updateThemeContainer(containerClass) { updateThemeContainer(containerClass) {
@@ -355,14 +355,14 @@ const SeasonalsManager = {
link.rel = 'stylesheet'; link.rel = 'stylesheet';
link.href = path; link.href = path;
// link.href = resolvePath(cssPath); // link.href = resolvePath(cssPath);
link.onerror = () => console.error(`Failed to load CSS: ${path}`); link.onerror = () => console.error(`Seasonals: Failed to load CSS: ${path}`);
document.body.appendChild(link); document.body.appendChild(link);
} else if (type === 'js') { } else if (type === 'js') {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = path; script.src = path;
// script.src = resolvePath(jsPath); // script.src = resolvePath(jsPath);
script.defer = true; script.defer = true;
script.onerror = () => console.error(`Failed to load JS: ${path}`); script.onerror = () => console.error(`Seasonals: Failed to load JS: ${path}`);
document.body.appendChild(script); document.body.appendChild(script);
} }
} }

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png",
"versions": [ "versions": [
{ {
"version": "1.6.13.1", "version": "1.6.13.4",
"changelog": "- feat: Add client-side toggle option for seasonal settings", "changelog": "- Refactor seasonals.js",
"targetAbi": "10.11.0.0", "targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.6.13.1/Jellyfin.Plugin.Seasonals.zip", "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.6.13.4/Jellyfin.Plugin.Seasonals.zip",
"checksum": "73177840d232ea06a0b621b901770d4c", "checksum": "8e46e1ba0cfc0d2501be33c03effb9e3",
"timestamp": "2026-02-04T12:39:13Z" "timestamp": "2026-02-04T15:51:33Z"
}, },
{ {
"version": "1.5.1.0", "version": "1.5.1.0",
@@ -107,6 +107,30 @@
"category": "General", "category": "General",
"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.4.0.2",
"changelog": "- feat: Add client-side settings feature for selected media bar settings",
"targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.4.0.2/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "6026fb8878a51f6dbe18aab1ac006df8",
"timestamp": "2026-02-04T15:45:39Z"
},
{
"version": "1.4.0.1",
"changelog": "- feat: Add client-side settings feature for selected media bar settings",
"targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.4.0.1/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "4068c03b1ab809906d64d4faed1c1b0e",
"timestamp": "2026-02-04T15:01:50Z"
},
{
"version": "1.4.0.0",
"changelog": "- feat: Add client-side settings feature for selected media bar settings",
"targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.4.0.0/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "20faa2a703dbb46591f4bd09e6ab7ec3",
"timestamp": "2026-02-04T12:49:45Z"
},
{ {
"version": "1.3.0.3", "version": "1.3.0.3",
"changelog": "- feat: Enhance custom media ID functionality with manual trailer override support", "changelog": "- feat: Enhance custom media ID functionality with manual trailer override support",