示例#1
0
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "dlna", StringComparison.OrdinalIgnoreCase))
     {
         ReloadComponents();
     }
 }
示例#2
0
文件: SsdpHandler.cs 项目: Cyrre/Emby
 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);
            }
        }
示例#4
0
 void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     CreateLogEntry(new ActivityLogEntry
     {
         Name = string.Format(_localization.GetLocalizedString("MessageNamedServerConfigurationUpdatedWithValue"), e.Key),
         Type = "NamedConfigurationUpdated"
     });
 }
示例#5
0
文件: EmbyTV.cs 项目: softworkz/Emby
 private void _config_NamedConfigurationUpdated(object sender, ConfigurationUpdateEventArgs e)
 {
     if (string.Equals(e.Key, "livetv", StringComparison.OrdinalIgnoreCase))
     {
         OnRecordingFoldersChanged();
     }
 }