Skip to content

Commit d47dc6b

Browse files
committed
Fix issue #643 Hidden crawler ignores specified tags
1 parent 22abb01 commit d47dc6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TumblThree/TumblThree.Applications/Crawler/TumblrHiddenCrawler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,15 @@ private static bool HasProperty(dynamic obj, string name)
419419

420420
private async Task DownloadPage(List<Post> posts)
421421
{
422+
var lastPostId = GetLastPostId();
422423
foreach (var post in posts)
423424
{
424425
if (CheckIfShouldStop()) { break; }
425426
CheckIfShouldPause();
427+
if (lastPostId > 0 && ulong.TryParse(post.Id, out var postId) && postId < lastPostId) { continue; }
426428
if (!PostWithinTimespan(post)) { continue; }
429+
if (!CheckIfContainsTaggedPost(post)) { continue; }
430+
if (!CheckIfDownloadRebloggedPosts(post)) { continue; }
427431

428432
Logger.Verbose("TumblrHiddenCrawler.DownloadPage: {0}", post.PostUrl);
429433
try

0 commit comments

Comments
 (0)