Disconnect erase from editor window

This commit is contained in:
TwistedUmbrellaX 2024-03-04 07:08:11 -05:00
parent 8e8a6207a5
commit f626595cb1
2 changed files with 66 additions and 65 deletions

View File

@ -59,61 +59,6 @@
</div>
</div>
<details id="edl">
<summary>EDL File Generation</summary>
<br />
<div class="selectContainer">
<label class="selectLabel" for="EdlAction">EDL Action</label>
<select is="emby-select" id="EdlAction" class="emby-select-withcolor emby-select">
<option value="None">
None (do not create or modify EDL files)
</option>
<option value="CommercialBreak">
Commercial Break (recommended, skips past the intro once)
</option>
<option value="Cut">
Cut (player will remove the intro from the video)
</option>
<option value="Intro">
Intro (show a skip button, *experimental*)
</option>
<option value="Mute">
Mute (audio will be muted)
</option>
<option value="SceneMarker">
Scene Marker (create a chapter marker)
</option>
</select>
<div class="fieldDescription">
If set to a value other than None, specifies which action to write to
<a href="https://kodi.wiki/view/Edit_decision_list">MPlayer compatible EDL files</a>
alongside your episode files. <br />
If this value is changed after EDL files are generated, you must check the
"Regenerate EDL files" checkbox below.
</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label class="emby-checkbox-label">
<input id="RegenerateEdlFiles" type="checkbox" is="emby-checkbox" />
<span>Regenerate EDL files during next scan</span>
</label>
<div class="fieldDescription">
If checked, the plugin will <strong>overwrite all EDL files</strong> associated with
your episodes with the currently discovered introduction timestamps and EDL action.
</div>
</div>
</details>
<details id="intro_reqs">
<summary>Modify Intro Requirements</summary>
@ -179,6 +124,61 @@
</p>
</details>
<details id="edl">
<summary>EDL File Generation</summary>
<br />
<div class="selectContainer">
<label class="selectLabel" for="EdlAction">EDL Action</label>
<select is="emby-select" id="EdlAction" class="emby-select-withcolor emby-select">
<option value="None">
None (do not create or modify EDL files)
</option>
<option value="CommercialBreak">
Commercial Break (recommended, skips past the intro once)
</option>
<option value="Cut">
Cut (player will remove the intro from the video)
</option>
<option value="Intro">
Intro (show a skip button, *experimental*)
</option>
<option value="Mute">
Mute (audio will be muted)
</option>
<option value="SceneMarker">
Scene Marker (create a chapter marker)
</option>
</select>
<div class="fieldDescription">
If set to a value other than None, specifies which action to write to
<a href="https://kodi.wiki/view/Edit_decision_list">MPlayer compatible EDL files</a>
alongside your episode files. <br />
If this value is changed after EDL files are generated, you must check the
"Regenerate EDL files" checkbox below.
</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label class="emby-checkbox-label">
<input id="RegenerateEdlFiles" type="checkbox" is="emby-checkbox" />
<span>Regenerate EDL files during next scan</span>
</label>
<div class="fieldDescription">
If checked, the plugin will <strong>overwrite all EDL files</strong> associated with
your episodes with the currently discovered introduction timestamps and EDL action.
</div>
</div>
</details>
<details id="silence">
<summary>Silence Detection Options</summary>
@ -207,7 +207,7 @@
</details>
<details id="detection">
<summary>Task Configuration</summary>
<summary>Process Configuration</summary>
<br/>
<div class="checkboxContainer checkboxContainer-withDescription">
@ -271,7 +271,6 @@
but setting a value of 0 (default) will use the maximum threads available.
</div>
</div>
</details>
</fieldset>
@ -322,7 +321,7 @@
</label>
<div class="fieldDescription">
If checked, skip button will appear through entire intro (offset and timeout are ignored).<br />
If checked, skip button will appear throughout entire intro (offset and timeout are ignored).<br />
</div>
</div>
@ -442,13 +441,13 @@
</button>
<br />
<br />
<button id="btnEraseSeasonTimestamps" type="button">
Erase all timestamps for this season
</button>
<hr />
</div>
<button id="btnEraseSeasonTimestamps" type="button" style="display:none;">
Erase all timestamps for this season
</button>
<hr />
<button id="btnEraseIntroTimestamps">
Erase all introduction timestamps (globally)
</button>
@ -674,6 +673,7 @@
// show changed, populate seasons
async function showChanged() {
clearSelect(selectSeason);
btnSeasonEraseTimestamps.style.display = "none";
// add all seasons from this show to the season select
for (var season of shows[selectShow.value]) {
@ -690,6 +690,7 @@
clearSelect(selectEpisode1);
clearSelect(selectEpisode2);
btnSeasonEraseTimestamps.style.display = "block";
let i = 1;
for (let episode of episodes) {
@ -770,7 +771,7 @@
// make an authenticated GET to the server and parse the response as JSON
async function getJson(url) {
return await fetchWithAuth(url, "GET").then(r => { return r.json(); });
return await fetchWithAuth(url, "GET").then(r => { return r.json(); }).catch(err => { console.debug(err) });
}
// make an authenticated fetch to the server

View File

@ -4,7 +4,7 @@
"name": "Intro Skipper",
"overview": "Automatically detect and skip intros in television episodes",
"description": "Analyzes the audio of television episodes and detects introduction sequences.",
"owner": "ConfusedPolarBear",
"owner": "jumoog (forked from ConfusedPolarBear)",
"category": "General",
"imageUrl": "https://raw.githubusercontent.com/jumoog/intro-skipper/master/images/logo.png",
"versions": [