Пример #1
0
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "dlna", StringComparison.OrdinalIgnoreCase))
     {
         ReloadComponents();
     }
 }
Пример #2
0
 void _config_ConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "dlna", StringComparison.OrdinalIgnoreCase))
     {
         ReloadAliveNotifier();
     }
 }
Пример #3
0
        void _config_NamedConfigurationUpdating(object sender, ConfigurationUpdateEventArgs e)
        {
            if (!string.Equals(e.Key, "subtitles", StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            var options = (SubtitleOptions)e.NewConfiguration;

            if (options != null &&
                !string.IsNullOrWhiteSpace(options.OpenSubtitlesPasswordHash) &&
                !options.OpenSubtitlesPasswordHash.StartsWith(PasswordHashPrefix, StringComparison.OrdinalIgnoreCase))
            {
                options.OpenSubtitlesPasswordHash = EncryptPassword(options.OpenSubtitlesPasswordHash);
            }
        }
Пример #4
0
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     CreateLogEntry(new ActivityLogEntry
     {
         Name = string.Format(_localization.GetLocalizedString("MessageNamedServerConfigurationUpdatedWithValue"), e.Key),
         Type = "NamedConfigurationUpdated"
     });
 }
Пример #5
0
 private void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "livetv", StringComparison.OrdinalIgnoreCase))
     {
         OnRecordingFoldersChanged();
     }
 }