Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4270235c78 | ||
|
|
76d8a67914 | ||
|
|
1a3caf5da6 | ||
|
|
3b3ef77e61 |
@@ -99,7 +99,8 @@
|
|||||||
<!-- Rules will be injected here via JS -->
|
<!-- Rules will be injected here via JS -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button is="emby-button" type="button" class="raised button-accent block" onclick="SeasonalsConfigPage.addRule();" style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;">
|
<button is="emby-button" type="button" class="raised emby-button" onclick="SeasonalsConfigPage.addRule();"
|
||||||
|
style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;">
|
||||||
<i class="material-icons" style="font-size: 24px;">add</i>
|
<i class="material-icons" style="font-size: 24px;">add</i>
|
||||||
<span>Add Rule</span>
|
<span>Add Rule</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -615,7 +616,7 @@
|
|||||||
}
|
}
|
||||||
.seasonal-rule-content {
|
.seasonal-rule-content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 2fr 1.2fr 1.2fr 2fr;
|
grid-template-columns: 2fr 1.3fr 1.3fr 2fr;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
align-items: end;
|
align-items: end;
|
||||||
}
|
}
|
||||||
@@ -629,7 +630,8 @@
|
|||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.date-range-group > .inputContainer {
|
.date-range-group > .inputContainer,
|
||||||
|
.date-range-group > .selectContainer {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -671,6 +673,39 @@
|
|||||||
var SeasonalsConfigPage = {
|
var SeasonalsConfigPage = {
|
||||||
pluginUniqueId: 'ef1e863f-cbb0-4e47-9f23-f0cbb1826ad4',
|
pluginUniqueId: 'ef1e863f-cbb0-4e47-9f23-f0cbb1826ad4',
|
||||||
|
|
||||||
|
getDaysOptions: function(selectedDay) {
|
||||||
|
var options = '';
|
||||||
|
for (var i = 1; i <= 31; i++) {
|
||||||
|
var isSelected = i === selectedDay ? 'selected' : '';
|
||||||
|
options += '<option value="' + i + '" ' + isSelected + '>' + i + '</option>';
|
||||||
|
}
|
||||||
|
return options;
|
||||||
|
},
|
||||||
|
|
||||||
|
getMonthsOptions: function(selectedMonth) {
|
||||||
|
var months = [
|
||||||
|
{ val: 1, name: 'Jan' },
|
||||||
|
{ val: 2, name: 'Feb' },
|
||||||
|
{ val: 3, name: 'Mar' },
|
||||||
|
{ val: 4, name: 'Apr' },
|
||||||
|
{ val: 5, name: 'May' },
|
||||||
|
{ val: 6, name: 'Jun' },
|
||||||
|
{ val: 7, name: 'Jul' },
|
||||||
|
{ val: 8, name: 'Aug' },
|
||||||
|
{ val: 9, name: 'Sep' },
|
||||||
|
{ val: 10, name: 'Oct' },
|
||||||
|
{ val: 11, name: 'Nov' },
|
||||||
|
{ val: 12, name: 'Dec' }
|
||||||
|
];
|
||||||
|
var options = '';
|
||||||
|
for (var i = 0; i < months.length; i++) {
|
||||||
|
var m = months[i];
|
||||||
|
var isSelected = m.val === selectedMonth ? 'selected' : '';
|
||||||
|
options += '<option value="' + m.val + '" ' + isSelected + '>' + m.name + '</option>';
|
||||||
|
}
|
||||||
|
return options;
|
||||||
|
},
|
||||||
|
|
||||||
addRule: function(data = null) {
|
addRule: function(data = null) {
|
||||||
var container = document.querySelector('#seasonalRulesList');
|
var container = document.querySelector('#seasonalRulesList');
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
@@ -698,24 +733,32 @@
|
|||||||
<input is="emby-input" class="rule-name" onchange="SeasonalsConfigPage.updateRuleTitles();" />
|
<input is="emby-input" class="rule-name" onchange="SeasonalsConfigPage.updateRuleTitles();" />
|
||||||
</div>
|
</div>
|
||||||
<div class="date-range-group">
|
<div class="date-range-group">
|
||||||
<div class="inputContainer" style="margin:0;">
|
<div class="selectContainer" style="margin:0; flex: 1;">
|
||||||
<label class="inputLabel">Start Day</label>
|
<label class="selectLabel">Start Day</label>
|
||||||
<input is="emby-input" type="number" class="rule-start-day" min="1" max="31" />
|
<select is="emby-select" class="rule-start-day" style="width: 100%;">
|
||||||
|
${this.getDaysOptions(startDay)}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="inputContainer" style="margin:0;">
|
<div class="selectContainer" style="margin:0; flex: 1;">
|
||||||
<label class="inputLabel">Month</label>
|
<label class="selectLabel">Month</label>
|
||||||
<input is="emby-input" type="number" class="rule-start-month" min="1" max="12" />
|
<select is="emby-select" class="rule-start-month" style="width: 100%;">
|
||||||
|
${this.getMonthsOptions(startMonth)}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="date-range-group">
|
<div class="date-range-group">
|
||||||
<div class="inputContainer" style="margin:0;">
|
<div class="selectContainer" style="margin:0; flex: 1;">
|
||||||
<label class="inputLabel">End Day</label>
|
<label class="selectLabel">End Day</label>
|
||||||
<input is="emby-input" type="number" class="rule-end-day" min="1" max="31" />
|
<select is="emby-select" class="rule-end-day" style="width: 100%;">
|
||||||
|
${this.getDaysOptions(endDay)}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="inputContainer" style="margin:0;">
|
<div class="selectContainer" style="margin:0; flex: 1;">
|
||||||
<label class="inputLabel">Month</label>
|
<label class="selectLabel">Month</label>
|
||||||
<input is="emby-input" type="number" class="rule-end-month" min="1" max="12" />
|
<select is="emby-select" class="rule-end-month" style="width: 100%;">
|
||||||
|
${this.getMonthsOptions(endMonth)}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -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.7.0.9</Version>
|
<Version>1.7.0.10</Version>
|
||||||
<RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl>
|
<RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -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.7.0.9",
|
"version": "1.7.0.10",
|
||||||
"changelog": "- feat: add customizable auto seasonal list via config page\n- feat: add new season theme 'resurrection' by Bioflash257",
|
"changelog": "- feat: add customizable auto seasonal list via config page\n- feat: add new season theme 'resurrection' by Bioflash257",
|
||||||
"targetAbi": "10.11.0.0",
|
"targetAbi": "10.11.0.0",
|
||||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.7.0.9/Jellyfin.Plugin.Seasonals.zip",
|
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.7.0.10/Jellyfin.Plugin.Seasonals.zip",
|
||||||
"checksum": "27ccb7695fb963e97759a2718f396df4",
|
"checksum": "8ff32aad07b862b7b56aabad7ea0794b",
|
||||||
"timestamp": "2026-02-16T18:27:33Z"
|
"timestamp": "2026-02-16T22:02:52Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "1.6.3.0",
|
"version": "1.6.3.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user