private void LoadSettings()
        {
            SubtitleMetadataExtractorSettings settings = _settingWatcher.Settings;

            SkipOnlineSearches     = settings.SkipOnlineSearches;
            ImportLanguageCultures = settings.ImportLanguageCultures.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
        }
        static SubtitleMetadataExtractor()
        {
            MEDIA_CATEGORIES.Add(DefaultMediaCategories.Video);
            SubtitleMetadataExtractorSettings settings = ServiceRegistration.Get <ISettingsManager>().Load <SubtitleMetadataExtractorSettings>();

            InitializeExtensions(settings);

            // All non-default media item aspects must be registered
            IMediaItemAspectTypeRegistration miatr = ServiceRegistration.Get <IMediaItemAspectTypeRegistration>();

            miatr.RegisterLocallyKnownMediaItemAspectTypeAsync(TempSubtitleAspect.Metadata);
        }
 /// <summary>
 /// (Re)initializes the subtitle extensions for which this <see cref="SubtitleMetadataExtractorSettings"/> used.
 /// </summary>
 /// <param name="settings">Settings object to read the data from.</param>
 internal static void InitializeExtensions(SubtitleMetadataExtractorSettings settings)
 {
     SUBTITLE_FILE_EXTENSIONS = new HashSet <string>(settings.SubtitleFileExtensions.Select(e => e.ToLowerInvariant()));
     SUBTITLE_FOLDERS         = new HashSet <string>(settings.SubtitleFolders);
 }