Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyfin-bot committed Nov 18, 2023
1 parent 1a470ed commit 76b7066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api/source_migrations.bs.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
appLastRunVersion = m.global.app.lastRunVersion
' Global registry migrations
if isValid(appLastRunVersion) and not versionChecker(appLastRunVersion, CLIENT_VERSION_REQUIRING_BASE_MIGRATION)
' last app version used < CLIENT_VERSION_REQUIRING_BASE_MIGRATION
m.wasMigrated = true
' last app version used was less than CLIENT_VERSION_REQUIRING_BASE_MIGRATION
print `Running ${CLIENT_VERSION_REQUIRING_BASE_MIGRATION} global registry migrations`
' no longer saving raw password to registry
' auth token and username are now stored in user settings and not global settings

' migrate saved credentials for "active_user" if found
savedUserId = get_setting("active_user")
if isValid(savedUserId)
registry_write("serverId", m.global.session.server.id, savedUserId)
' copy saved credentials to user block
savedUsername = get_setting("username")
if isValid(savedUsername)
registry_write("username", savedUsername, savedUserId)
Expand All @@ -32,11 +31,12 @@
registry_write("token", savedToken, savedUserId)
end if
end if
' remove settings from global "jellyfin" registry block
unset_setting("port")
unset_setting("token")
unset_setting("username")
unset_setting("password")
' remove saved credentials from saved_servers
' remove any saved credentials found in saved_servers assocArray
saved = get_setting("saved_servers")
if isValid(saved)
savedServers = ParseJson(saved)
Expand Down

0 comments on commit 76b7066

Please sign in to comment.