예제 #1
0
        private void Downloader_FetchFailed(object Sender, FetchFailEventArgs args)
        {
            lock (hExecuted)
            {
                hExecuted.Add(args.Link.Uri.ToString());
            }
            log.Error($"[ERR] {args.Error.Message} {args.Link}");
            args.Source = FetchEventArgs.EventSource.Downloader;

            if (args.HttpErrorCode == 404)
            {
                SpiderWorkData.Error404.Add(args.Link.Uri.ToString());
            }

            FetchFailed?.Invoke(this, args);
        }
예제 #2
0
 private void Cacher_FetchFailed(object Sender, FetchFailEventArgs args)
 {
     qDownload.Enqueue(args.Link);
 }