Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit ac148b3

Browse files
committed
Fixes pagination detection in Tumblr likes.
Fixes the pagination detection in the Tumblr likes crawler for blogs that contain a dash in the name.
1 parent 5970aca commit ac148b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TumblThree/TumblThree.Applications/Crawler/TumblrLikedByCrawler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private long ExtractNextPageLink(string document)
215215
// <a id="next_page_link" href="/liked/by/wallpaperfx/page/5/1457139681" class="next button chrome blue">Next</a></div></div>
216216

217217
long unixTime = 0;
218-
var pagination = "(id=\"next_page_link\" href=\"[A-Za-z0-9_/:.]+/([0-9]+)/([A-Za-z0-9]+))\"";
218+
var pagination = "(id=\"next_page_link\" href=\"[A-Za-z0-9_/:.-]+/([0-9]+)/([A-Za-z0-9]+))\"";
219219
long.TryParse(Regex.Match(document, pagination).Groups[3].Value, out unixTime);
220220
return unixTime;
221221
}

0 commit comments

Comments
 (0)