Skip to content

Commit f28f102

Browse files
committed
Fix FileCount for threads created from board scraping being off by 1
1 parent 50b6e2e commit f28f102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GChan/Models/Trackers/Sites/Board_4Chan.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static bool UrlIsBoard(string url)
5757
var id = thread["no"].Value<long>();
5858
var url = "https://boards.4chan.org/" + BoardCode + "/thread/" + id;
5959
var subject = thread["sub"]?.Value<string>() ?? Thread.NO_SUBJECT;
60-
var fileCount = thread["images"].Value<int>();
60+
var fileCount = thread["images"].Value<int>() + 1; // Add 1 to the file count because all threads must start with an image, catalog excludes this.
6161

6262
return new Thread_4Chan(url, subject, fileCount);
6363
})

0 commit comments

Comments
 (0)