Beispiel #1
0
        private void SetShowItem()
        {
            int code = codeFinder.SelectedCode();

            ShowItem.TvdbCode          = code;
            ShowItem.AutoAddFolderBase = cbDirectory.Text + lblDirectoryName.Text;
            ShowItem.AutoAddType       = ShowItem.AutomaticFolderType.libraryDefault;
            //Set Default Timezone based on Network
            ShowItem.ShowTimeZone = TimeZoneHelper.TimeZoneForNetwork(codeFinder.SelectedShow()?.Network);
            if (!originalHint.Contains(codeFinder.SelectedShow().Name, StringComparison.OrdinalIgnoreCase))
            {
                ShowItem.AliasNames.Add(originalHint);
            }
        }
        private void SetShowItem()
        {
            int code = codeFinder.SelectedCode();

            ShowItem.TvdbCode          = code;
            ShowItem.AutoAddFolderBase = cbDirectory.Text + lblDirectoryName.Text;

            //Set Default Timezone and if not then set on Network
            ShowItem.ShowTimeZone = TVSettings.Instance.DefaultShowTimezoneName ?? TimeZoneHelper.TimeZoneForNetwork(codeFinder.SelectedShow()?.Network, ShowItem.ShowTimeZone);

            if (!originalHint.Contains(codeFinder.SelectedShow().Name, StringComparison.OrdinalIgnoreCase))
            {
                ShowItem.AliasNames.Add(originalHint);
            }
        }
Beispiel #3
0
        private void SetShowItem(int code, TVDoc.ProviderType type, string folderbase)
        {
            ShowConfiguration.SetId(type, code);
            ShowConfiguration.AutoAddFolderBase     = folderbase;
            ShowConfiguration.ConfigurationProvider = type == TVSettings.Instance.DefaultProvider? TVDoc.ProviderType.libraryDefault: type;

            //Set Default Timezone and if not then set on Network
            ShowConfiguration.ShowTimeZone = TVSettings.Instance.DefaultShowTimezoneName ?? TimeZoneHelper.TimeZoneForNetwork(tvCodeFinder.SelectedShow()?.Network, ShowConfiguration.ShowTimeZone);

            if (!originalHint.Contains(tvCodeFinder.SelectedShow()?.Name ?? string.Empty, StringComparison.OrdinalIgnoreCase))
            {
                ShowConfiguration.AliasNames.Add(originalHint);
            }
        }