Example #1
0
        public void SearchStart()
        {
            videoList1.DisableAllCards();
            Video v = new Video(SearchBox.Text);

            switch (v.Type)
            {
            case 1:
                //av
                VideoClass.AV av = v.av[0];
                if (av.status)
                {
                    ResultShowReady();
                    videoList1.InitCards(v.av[0].episodes);
                    materialLabel2.Text = v.av[0].name;
                    Tabs.SelectTab(1);
                }
                break;

            case 3:
                //SS
                ResultShowReady();
                materialLabel2.Text = v.ss.ss[0].name;
                foreach (VideoClass.SeasonSection ss in v.ss.ss)
                {
                    videoList1.InitCards(ss.episodes);
                }
                Tabs.SelectTab(1);
                break;
            }
        }
Example #2
0
        private async void RealSearchStart()
        {
            Video v = new Video(SearchBox.Text);

            switch (v.Type)
            {
            case 1:
                //av
                VideoClass.AV av = v.av[0];
                if (av.status)
                {
                    videoList1.InitCards(v.av[0].episodes);
                    materialLabel2.Text = v.av[0].name;
                    Tabs.SelectTab(1);
                }
                break;

            case 3:
                //SS
                materialLabel2.Text = v.ss.ss[0].name;
                foreach (VideoClass.SeasonSection ss in v.ss.ss)
                {
                    videoList1.InitCards(ss.episodes);
                }
                Tabs.SelectTab(1);
                break;
            }
            videoList1.SetTipMessage("加载完成", false);
        }
Example #3
0
        private void SearchBox_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                videoList1.DisableAllCards();
                Tabs.SelectTab(1);
                Video v = new Video(SearchBox.Text);
                switch (v.Type)
                {
                case 1:
                    //av
                    VideoClass.AV av = v.av[0];
                    if (av.status)
                    {
                        ResultShowReady();
                        videoList1.InitCards(v.av[0].episodes);
                        materialLabel2.Text = v.av[0].name;
                    }
                    break;

                case 3:
                    //SS
                    ResultShowReady();
                    materialLabel2.Text = v.ss.ss[0].name;
                    foreach (VideoClass.SeasonSection ss in v.ss.ss)
                    {
                        videoList1.InitCards(ss.episodes);
                    }
                    break;
                }
            }
        }
Example #4
0
 private bool ProcessAV(string avid)
 {
     VideoClass.AV nav = new VideoClass.AV(avid);
     if (nav.isbangumi)
     {
         string vlink = nav.bangumiurl;
         vlink = Other.TextGetCenter("play/", "/", vlink, vlink);
         if (vlink.Contains("ep"))
         {
             Type = VideoType.SS;
             ProcessEP(vlink.Replace("ep", ""));
             return(true);
         }
     }
     av.Add(nav);
     return(true);
 }
Example #5
0
        private void RealSearchStart()
        {
            v = new Video(SearchBox.Text);
            materialLabel2.Visible  = true;
            SeasonSelectBox.Visible = false;
            switch (v.Type)
            {
            case 1:
                //av
                VideoClass.AV av = v.av[0];
                if (av.status)
                {
                    videoList1.InitCards(v.av[0].episodes);
                    materialLabel2.Text = v.av[0].name;
                    Tabs.SelectTab(1);
                }

                break;

            case 3:
                //SS
                materialLabel2.Visible  = false;
                SeasonSelectBox.Visible = true;
                SeasonSelectBox.Items.Clear();
                foreach (VideoClass.SeasonSection ss in v.ss.ss)
                {
                    SeasonSelectBox.Items.Add(ss.name);
                }

                SeasonSelectBox.SelectedIndex = 0;
                //videoList1.InitCards(v.ss.ss[0].episodes);
                Tabs.SelectTab(1);
                break;

            case 5:
                //Cheese
                materialLabel2.Text = v.cs.name;
                videoList1.InitCards(v.cs.episodes);
                Tabs.SelectTab(1);
                break;
            }

            videoList1.SetTipMessage("加载完成", false);
        }
Example #6
0
        private void materialFlatButton1_Click(object sender, EventArgs e)
        {
            if (!resultSeeing)
            {
                videoList1.DisableAllCards();
                Tabs.SelectTab(1);
                Video v = new Video(SearchBox.Text);
                switch (v.Type)
                {
                case 1:
                    //av
                    VideoClass.AV av = v.av[0];
                    if (av.status)
                    {
                        ResultShowReady();
                        videoList1.InitCards(v.av[0].episodes);
                        materialLabel2.Text = v.av[0].name;
                    }
                    break;

                case 3:
                    //SS
                    ResultShowReady();
                    materialLabel2.Text = v.ss.ss[0].name;
                    foreach (VideoClass.SeasonSection ss in v.ss.ss)
                    {
                        videoList1.InitCards(ss.episodes);
                    }
                    break;
                }
            }
            else
            {
                Tabs.SelectTab(0);
                CloseCase();
            }
        }