Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb0392eb0d | ||
|
|
ed13e05b82 | ||
|
|
310fb4d496 | ||
|
|
78d25106db | ||
|
|
a328171a8a | ||
|
|
361559cbec | ||
|
|
e08bf66a53 | ||
|
|
d6ef81138d | ||
|
|
35f21e680a | ||
|
|
705fbaed9d | ||
|
|
9e52198ef7 | ||
|
|
b1943dfe17 | ||
|
|
c55e900c0f | ||
|
|
503e9addee | ||
|
|
d630fdd217 | ||
|
|
7e4a7c2a6e | ||
|
|
1716a771f3 |
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user