From 486c9accf339fc487357801f17da193e30c90b16 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sat, 5 Oct 2024 22:55:15 +0200 Subject: [PATCH] fix: can't save timestamps in Plugin Options --- .../Configuration/configPage.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index a89078c..6418196 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -1444,24 +1444,24 @@ const lhsId = selectEpisode1.options[selectEpisode1.selectedIndex].value; const newLhs = { Introduction: { - IntroStart: getTimeInSeconds(document.getElementById('editLeftIntroEpisodeStart').value), - IntroEnd: getTimeInSeconds(document.getElementById('editLeftIntroEpisodeEnd').value) + Start: getTimeInSeconds(document.getElementById('editLeftIntroEpisodeStart').value), + End: getTimeInSeconds(document.getElementById('editLeftIntroEpisodeEnd').value) }, Credits: { - IntroStart: getTimeInSeconds(document.getElementById('editLeftCreditEpisodeStart').value), - IntroEnd: getTimeInSeconds(document.getElementById('editLeftCreditEpisodeEnd').value) + Start: getTimeInSeconds(document.getElementById('editLeftCreditEpisodeStart').value), + End: getTimeInSeconds(document.getElementById('editLeftCreditEpisodeEnd').value) } }; const rhsId = selectEpisode2.options[selectEpisode2.selectedIndex].value; const newRhs = { Introduction: { - IntroStart: getTimeInSeconds(document.getElementById('editRightIntroEpisodeStart').value), - IntroEnd: getTimeInSeconds(document.getElementById('editRightIntroEpisodeEnd').value) + Start: getTimeInSeconds(document.getElementById('editRightIntroEpisodeStart').value), + End: getTimeInSeconds(document.getElementById('editRightIntroEpisodeEnd').value) }, Credits: { - IntroStart: getTimeInSeconds(document.getElementById('editRightCreditEpisodeStart').value), - IntroEnd: getTimeInSeconds(document.getElementById('editRightCreditEpisodeEnd').value) + Start: getTimeInSeconds(document.getElementById('editRightCreditEpisodeStart').value), + End: getTimeInSeconds(document.getElementById('editRightCreditEpisodeEnd').value) } }; fetchWithAuth("Episode/" + lhsId + "/Timestamps", "POST", JSON.stringify(newLhs));