Exemple #1
0
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "dlna", StringComparison.OrdinalIgnoreCase))
     {
         ReloadComponents();
     }
 }
Exemple #2
0
 void _config_ConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "dlna", StringComparison.OrdinalIgnoreCase))
     {
         ReloadAliveNotifier();
     }
 }
        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);
            }
        }
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     CreateLogEntry(new ActivityLogEntry
     {
         Name = string.Format(_localization.GetLocalizedString("MessageNamedServerConfigurationUpdatedWithValue"), e.Key),
         Type = "NamedConfigurationUpdated"
     });
 }
Exemple #5
0
 private void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "livetv", StringComparison.OrdinalIgnoreCase))
     {
         OnRecordingFoldersChanged();
     }
 }