diff --git a/playlet-app/src/source/Main.bs b/playlet-app/src/source/Main.bs index 00fccddd..63f99dce 100644 --- a/playlet-app/src/source/Main.bs +++ b/playlet-app/src/source/Main.bs @@ -1,5 +1,5 @@ ' Playlet (App to play videos from an Invidious server on Roku TVs) -' Copyright (C) 2022 Brahim Hadriche +' Copyright (C) 2023 Brahim Hadriche ' This program is free software: you can redistribute it and/or modify ' it under the terms of the GNU Affero General Public License as published by @@ -85,10 +85,3 @@ function Main(args as object) as void end while end function - -function ClearPlayletLibUrlsIfNeeded(launchArgs as object) as void - if launchArgs = invalid or launchArgs.clearPlayletLibUrls = invalid - return - end if - DeleteRegistryKey("playlet_lib_urls", "Playlet") -end function diff --git a/playlet-app/src/source/Registry.bs b/playlet-app/src/source/Registry.bs index 606760c8..144b26a6 100644 --- a/playlet-app/src/source/Registry.bs +++ b/playlet-app/src/source/Registry.bs @@ -20,3 +20,10 @@ function GetPlayletLibUrlsFromRegistry() as object urls = ParseJson(urlsJson) return urls end function + +function ClearPlayletLibUrlsIfNeeded(launchArgs as object) as void + if launchArgs = invalid or launchArgs.clearPlayletLibUrls = invalid + return + end if + DeleteRegistryKey("playlet_lib_urls", "Playlet") +end function