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); }
private void Cacher_FetchFailed(object Sender, FetchFailEventArgs args) { qDownload.Enqueue(args.Link); }