Skip to content

Commit

Permalink
Fix issue #215 Blogs not downloading
Browse files Browse the repository at this point in the history
- The implementation for issue 206 produced an error in the crawler controller.
  • Loading branch information
thomas694 committed Feb 19, 2022
1 parent 54e99a2 commit 5fdc26e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ private async Task RunCrawlerTasksAsync(PauseToken pt, CancellationToken ct)
continue;
}
IBlog blog = nextQueueItem.Blog;
bool isHiddenTumblrBlog = false;
if (blog.BlogType == BlogTypes.tumblr)
isHiddenTumblrBlog = await _tumblrBlogDetector.IsHiddenTumblrBlogAsync(blog.Url);
bool isHiddenTumblrBlog = false;
if (blog.BlogType == BlogTypes.tumblr)
isHiddenTumblrBlog = _tumblrBlogDetector.IsHiddenTumblrBlogAsync(blog.Url).GetAwaiter().GetResult();
if (isHiddenTumblrBlog)
blog.BlogType = BlogTypes.tmblrpriv;
var privacyConsentNeeded = false;
Expand Down

0 comments on commit 5fdc26e

Please sign in to comment.