From 499810b3fae16da99ff1efdbf768e78814389023 Mon Sep 17 00:00:00 2001 From: jmawet Date: Fri, 7 Aug 2026 22:07:44 -0700 Subject: [PATCH] fix skip length unit conversion when syncing to/from moonbase --- source/utils/settingsSync.bs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/source/utils/settingsSync.bs b/source/utils/settingsSync.bs index 36b9541cb..84bb6a855 100644 --- a/source/utils/settingsSync.bs +++ b/source/utils/settingsSync.bs @@ -167,7 +167,13 @@ namespace settingsSync pluginValue = profile[mapping.pluginKey] if not isValid(pluginValue) then continue for - rokuValue = settingsSync.PluginToRoku(pluginValue, mapping.type) + if mapping.pluginKey = "skipForwardLength" or mapping.pluginKey = "skipBackLength" + newValue = pluginValue / 1000 + else + newValue = pluginValue + end if + + rokuValue = settingsSync.PluginToRoku(newValue, mapping.type) if not isValid(rokuValue) then continue for tmpSettings[mapping.rokuKey] = toBoolean(rokuValue) @@ -301,10 +307,16 @@ namespace settingsSync sub PushToServer(rokuKey as string, rokuValue as dynamic) if not settingsSync.IsSyncEnabled() then return + if rokuKey = "playback.skipForwardLength" or rokuKey = "playback.skipBackLength" + newValue = rokuValue * 1000 + else + newValue = rokuValue + end if + mapping = settingsSync.FindMappingByRokuKey(rokuKey) if not isValid(mapping) if Left(rokuKey, 10) = "seerr.row." - pushData = settingsSync.PreparePush(rokuKey, rokuValue) + pushData = settingsSync.PreparePush(rokuKey, newValue) if isValid(pushData) task = createObject("roSGNode", "PostTask") task.apiUrl = pushData.url @@ -315,7 +327,7 @@ namespace settingsSync return end if - pluginValue = settingsSync.RokuToPlugin(rokuValue, mapping.type) + pluginValue = settingsSync.RokuToPlugin(newValue, mapping.type) if not isValid(pluginValue) then return profileData = {}