Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string url = "";

            foreach (Server server in Servers)
            {
                if (server != null && !string.IsNullOrEmpty(server.Url) && !string.IsNullOrEmpty(server.ServerTitle))
                {
                    if (server.ServerTitle == ComboBox.Text)
                    {
                        url = server.Url;
                        break;
                    }
                }
            }

            string actor = ActorTextBlock.Text.Replace("当前演员 ", "");

            if (string.IsNullOrEmpty(url) || string.IsNullOrEmpty(actor))
            {
                return;
            }
            //检索影片
            string id = "";

            using (MySqlite mySqlite = new MySqlite("BusActress"))
            {
                id = mySqlite.SelectByField("id", "censored", actor, "name");
            }

            if (string.IsNullOrEmpty(id))
            {
            }
            else
            {
                //访问网址
                if (!url.EndsWith("/"))
                {
                    url += "/";
                }
                url += $"star/{id}";

                //(string html,int sc)= await Net.Http(url);

                //System.Console.WriteLine(html);
            }
        }