Refactor for activeIdentityToken (#631)

* Refactor for activeIdentityToken

* Account selector stuff

* Small refactor

* Tweak

* That's a wrap

* comment

* Lint fix

* Localize

* Lint fix

* Close view on error

* parse error when gathering tracking urls

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2025-05-31 14:40:33 -04:00
1 parent 4c94db2c03
commit 9e3da6b67d
31 files changed
+606 -413

No files matched your search

+3
View File
@@ -94,6 +94,8 @@ namespace Locale
YouTubeLoginDisclaimer1 = "Playlet is a third-party app and is not affiliated with, endorsed by, or sponsored by YouTube or Google. All trademarks and registered trademarks mentioned are the property of their respective owners and are used only for identification purposes."
YouTubeLoginDisclaimer2 = "By using Playlet and signing in with your YouTube account, you acknowledge that you do so at your own risk. The developers of Playlet are not liable for any harm, including but not limited to data loss, account suspension or ban, hacking, or loss of content."
YouTubeLoginDisclaimer3 = "Use responsibly, especially if your YouTube account is tied to business or monetization."
WhosWatching = "Who's watching?"
NoValidAccountsFound = "No valid accounts found for YouTube login."
end enum
@locale
@@ -114,6 +116,7 @@ namespace Locale
Yes = "Yes"
No = "No"
Success = "Success"
Error = "Error"
end enum
@locale
+11 -12
View File
@@ -1,24 +1,23 @@
namespace OptionUtils
function Get(opts as object, key as string, passthroughFunction = invalid as dynamic) as dynamic
function Get(opts as object, key as string) as dynamic
if opts = invalid
if passthroughFunction = invalid
return invalid
end if
return passthroughFunction(invalid)
return invalid
end if
return opts[key]
end function
function GetOrDefault(opts as object, key as string, defaultValue as dynamic) as dynamic
if opts = invalid or not opts.DoesExist(key)
return defaultValue
end if
value = opts[key]
if value = invalid
if passthroughFunction = invalid
return invalid
end if
return passthroughFunction(invalid)
return defaultValue
end if
if passthroughFunction <> invalid
return passthroughFunction(value)
end if
return value
end function