BiliRanking.Core.TSDownload.Start C# (CSharp) 메소드

Start() 공개 메소드

开始下载(如文件已存在则自动加(n))
public Start ( ) : void
리턴 void
        public void Start()
        {
            tims.AutoReset = true;
            tims.Elapsed += tims_Elapsed;
            tims.Enabled = true;

            tdl = new Thread(ThreadDL);
            tdl.Name = "TSLib-DL";
            tdl.Start();
        }

Usage Example

예제 #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();
                }
            }
        }
All Usage Examples Of BiliRanking.Core.TSDownload::Start