Methods
(static) DeleteFromServerList(idOrUrl) → {void}
| Name | Type | Description |
|---|---|---|
idOrUrl | string |
- Source
- Type:
- void
(static) GetConfigTree() → {dynamic}
Read config tree from json config file and return
- Source
- Type:
- dynamic
(static) RegistryReadAll(section) → {dynamic}
Return all data found inside a registry section
| Name | Type | Description |
|---|---|---|
section | string |
- Source
- Type:
- dynamic
(static) SaveServerList() → {void}
Saved-server list persistence. Pure registry operations on the saved_servers key — config.bs's domain, alongside getSavedUsers — called from both SetServerScreen (render thread, delete) and the loginRouter coordinator (main thread, save).
- Source
- Type:
- void
(static) findConfigTreeKey(key, tree) → {dynamic}
Recursivly search the config tree for entry with settingname equal to key
| Name | Type | Description |
|---|---|---|
key | string | |
tree | dynamic |
- Source
- Type:
- dynamic
(static) findServerInList(savedJson, guid) → {object}
Pure: match the saved_servers JSON against a server GUID, case-insensitively (via serverIdsMatch). Split out from the registry read (findSavedServerByGuid in replayRoute.bs) so the match logic is unit-testable without touching the registry (getSetting reads the real "JellyRock" section, which tests must not write). Lives here alongside the saved_servers shape.
| Name | Type | Description |
|---|---|---|
savedJson | dynamic | |
guid | string |
- Source
- Type:
- object
(static) getGlobalRegistrySection() → {string}
Helper to get the global registry section name Returns "test-global" during tests, "JellyRock" in production
- Source
- Type:
- string
(static) getRegistrySections() → {object}
Return an array of all the registry section keys
- Source
- Type:
- object
(static) getSavedUsers() → {object}
Returns an array of saved users from the registry that belong to the active server
- Source
- Type:
- object
(static) getSetting(key, defaultValueopt) → {dynamic}
"JellyRock" registry accessors for the default global settings
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
defaultValue | dynamic | <optional> | invalid |
- Source
- Type:
- dynamic
(static) getSettingKeysToDelete(allKeys, preserveKeys) → {object}
Filter registry keys to find those that should be deleted during a settings reset Preserves session/identity keys, deletes everything else
| Name | Type | Description |
|---|---|---|
allKeys | object | associative array of all registry key-value pairs |
preserveKeys | object | array of key names to preserve |
- Source
- array of key names that should be deleted
- Type:
- object
(static) getUserSetting(key) → {dynamic}
User registry accessors for the currently active user
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- dynamic
(static) isGlobalSetting(key) → {boolean}
Helper to determine if a setting is global (applies to all users)
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- boolean
(static) registryDelete(key, sectionopt) → {void}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- void
(static) registryRead(key, sectionopt) → {dynamic}
Generic registry accessors
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- dynamic
(static) registryWrite(key, value, sectionopt) → {void}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
value | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- void
(static) serverIdsMatch(a, b) → {boolean}
True when two Jellyfin server ids refer to the same server. Jellyfin GUIDs are canonical lower-case hex, but fold both sides so a mis-cased id (e.g. from an external deep-link/cast sender) still matches. The single source of truth for "same server?" across the saved-server list and the saved-user filter — keeps every id comparison consistent.
| Name | Type | Description |
|---|---|---|
a | dynamic | |
b | dynamic |
- Source
- Type:
- boolean
(static) setSetting(key, value) → {void}
| Name | Type | Description |
|---|---|---|
key | dynamic | |
value | dynamic |
- Source
- Type:
- void
(static) setUserSetting(key, value) → {void}
| Name | Type | Description |
|---|---|---|
key | string | |
value | dynamic |
- Source
- Type:
- void
(static) unsetSetting(key) → {void}
| Name | Type | Description |
|---|---|---|
key | dynamic |
- Source
- Type:
- void
(static) unsetUserSetting(key) → {void}
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- void
(static) valueToString(value) → {string}
Convert dynamic value to string for registry storage
| Name | Type | Description |
|---|---|---|
value | dynamic |
- Source
- Type:
- string