Esempio n. 1
0
        private void FillCombos()
        {
            this.cbTags.Items.Clear();
            this.cbPresets.Items.Clear();
            ProcessedEpisode pe = null;

            if (this.lvTest.SelectedItems.Count == 0)
            {
                pe = ((this.Eps != null) && (this.Eps.Count > 0)) ? this.Eps[0] : null;
            }
            else
            {
                pe = (ProcessedEpisode)(this.lvTest.SelectedItems[0].Tag);
            }

            foreach (string s in CustomName.Tags)
            {
                string txt = s;
                if (pe != null)
                {
                    txt += " - " + CustomName.NameForNoExt(pe, s);
                }
                this.cbTags.Items.Add(txt);
            }

            foreach (string s in CustomName.Presets)
            {
                this.cbPresets.Items.Add(pe != null ? CustomName.NameForNoExt(pe, s) : s);
            }
        }
        public CustomNameTagsFloatingWindow(ProcessedEpisode pe)
        {
            InitializeComponent();

            foreach (string s in CustomName.Tags)
            {
                string txt = s;
                if (pe != null)
                {
                    txt += " - " + CustomName.NameForNoExt(pe, s);
                }

                this.label1.Text += txt + "\r\n";
            }
        }
Esempio n. 3
0
        public string BTSearchURL(ProcessedEpisode epi)
        {
            if (epi == null)
            {
                return("");
            }

            SeriesInfo s = epi.TheSeries;

            if (s == null)
            {
                return("");
            }

            String url = String.IsNullOrEmpty(epi.SI.CustomSearchURL) ? this.TheSearchers.CurrentSearchURL() : epi.SI.CustomSearchURL;

            return(CustomName.NameForNoExt(epi, url, true));
        }