Start() public méthode

开始下载(如文件已存在则自动加(n))
public Start ( ) : void
Résultat void
Exemple #1
0
        public static void GetPic(string AVnum)
        {
            string avnum = GetAVdenum(AVnum);
            string file  = Environment.CurrentDirectory + @"\pic\AV" + avnum + ".jpg";

            if (File.Exists(file))
            {
                Log.Info("封面已存在 - AV" + avnum);
            }
            else
            {
                BiliInterfaceInfo info = GetInfo(AVnum);
                if (info.pic != null)
                {
                    string url = info.pic;
                    Log.Info("正在获取封面 - " + info.AVNUM + " | " + url + " -> " + file);
                    TSDownload tsd = new TSDownload(url, file);
                    tsd.Start();
                }
            }
        }
Exemple #2
0
 public static void GetPic(string AVnum)
 {
     string avnum = GetAVdenum(AVnum);
     string file = Environment.CurrentDirectory + @"\pic\AV" + avnum + ".jpg";
     if (File.Exists(file))
     {
         Log.Info("封面已存在 - AV" + avnum);
     }
     else
     {
         BiliInterfaceInfo info = GetInfo(AVnum);
         if (info.pic != null)
         {
             string url = info.pic;
             Log.Info("正在获取封面 - " + info.AVNUM + " | " + url + " -> " + file);
             TSDownload tsd = new TSDownload(url, file);
             tsd.Start();
         }
     }
 }