@ -35,15 +35,15 @@ type Storage struct {
deprecatedUserExpiries map [ string ] time . Time // Map of Jellyfin User IDs to their expiry times.
deprecatedUserExpiries map [ string ] time . Time // Map of Jellyfin User IDs to their expiry times.
deprecatedInvites Invites
deprecatedInvites Invites
deprecatedProfiles map [ string ] Profile
deprecatedProfiles map [ string ] Profile
d isplayprefs, ombi_template map [ string ] interface { }
d eprecatedDisplayprefs, deprecatedOmbiTemplate map [ string ] interface { }
deprecatedEmails emailStore // Map of Jellyfin User IDs to Email addresses.
deprecatedEmails emailStore // Map of Jellyfin User IDs to Email addresses.
deprecatedTelegram telegramStore // Map of Jellyfin User IDs to telegram users.
deprecatedTelegram telegramStore // Map of Jellyfin User IDs to telegram users.
deprecatedDiscord discordStore // Map of Jellyfin user IDs to discord users.
deprecatedDiscord discordStore // Map of Jellyfin user IDs to discord users.
deprecatedMatrix matrixStore // Map of Jellyfin user IDs to Matrix users.
deprecatedMatrix matrixStore // Map of Jellyfin user IDs to Matrix users.
customEmails customEmails
customEmails customEmails
userPage userPageContent
userPage userPageContent
policy mediabrowser . Policy
de precatedP olicy mediabrowser . Policy
configuration mediabrowser . Configuration
depre catedC onfiguration mediabrowser . Configuration
lang Lang
lang Lang
deprecatedAnnouncements map [ string ] announcementTemplate
deprecatedAnnouncements map [ string ] announcementTemplate
}
}
@ -1213,35 +1213,35 @@ func (st *Storage) storeUserPageContent() error {
}
}
func ( st * Storage ) loadPolicy ( ) error {
func ( st * Storage ) loadPolicy ( ) error {
return loadJSON ( st . policy_path , & st . policy)
return loadJSON ( st . policy_path , & st . de precatedP olicy)
}
}
func ( st * Storage ) storePolicy ( ) error {
func ( st * Storage ) storePolicy ( ) error {
return storeJSON ( st . policy_path , st . policy)
return storeJSON ( st . policy_path , st . de precatedP olicy)
}
}
func ( st * Storage ) loadConfiguration ( ) error {
func ( st * Storage ) loadConfiguration ( ) error {
return loadJSON ( st . configuration_path , & st . configuration)
return loadJSON ( st . configuration_path , & st . depre catedC onfiguration)
}
}
func ( st * Storage ) storeConfiguration ( ) error {
func ( st * Storage ) storeConfiguration ( ) error {
return storeJSON ( st . configuration_path , st . configuration)
return storeJSON ( st . configuration_path , st . depre catedC onfiguration)
}
}
func ( st * Storage ) loadDisplayprefs ( ) error {
func ( st * Storage ) loadDisplayprefs ( ) error {
return loadJSON ( st . displayprefs_path , & st . d isplayprefs)
return loadJSON ( st . displayprefs_path , & st . d eprecatedD isplayprefs)
}
}
func ( st * Storage ) storeDisplayprefs ( ) error {
func ( st * Storage ) storeDisplayprefs ( ) error {
return storeJSON ( st . displayprefs_path , st . d isplayprefs)
return storeJSON ( st . displayprefs_path , st . d eprecatedD isplayprefs)
}
}
func ( st * Storage ) loadOmbiTemplate ( ) error {
func ( st * Storage ) loadOmbiTemplate ( ) error {
return loadJSON ( st . ombi_path , & st . ombi_t emplate)
return loadJSON ( st . ombi_path , & st . deprecatedOmbiT emplate)
}
}
func ( st * Storage ) storeOmbiTemplate ( ) error {
func ( st * Storage ) storeOmbiTemplate ( ) error {
return storeJSON ( st . ombi_path , st . ombi_t emplate)
return storeJSON ( st . ombi_path , st . deprecatedOmbiT emplate)
}
}
func ( st * Storage ) loadAnnouncements ( ) error {
func ( st * Storage ) loadAnnouncements ( ) error {
@ -1298,9 +1298,9 @@ func (st *Storage) migrateToProfile() error {
st . loadDisplayprefs ( )
st . loadDisplayprefs ( )
st . loadProfiles ( )
st . loadProfiles ( )
st . deprecatedProfiles [ "Default" ] = Profile {
st . deprecatedProfiles [ "Default" ] = Profile {
Policy : st . policy,
Policy : st . de precatedP olicy,
Configuration : st . configuration,
Configuration : st . depre catedC onfiguration,
Displayprefs : st . d isplayprefs,
Displayprefs : st . d eprecatedD isplayprefs,
}
}
return st . storeProfiles ( )
return st . storeProfiles ( )
}
}