Skip to content

Commit f2672e9

Browse files
committed
* update the requesting client version from 12.26.1.0 to 12.66.1.0 following b372f22 to fix lumina37/aiotieba#216 (comment) @ derived classes of BaseCrawler<,>
* fix lumina37/aiotieba#216 (comment) @ `ReplyCrawlFacade.OnPostParse()` @ crawler * update path of protoBuf codegen files @ TbClient.csproj @ tbclient @ c# $ git submodule update --remote
1 parent c5ccffb commit f2672e9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

c#/crawler/src/Tieba/Crawl/Crawler/ReplyCrawler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public override IReadOnlyCollection<Reply> GetValidPosts(ReplyResponse response,
3232
protected override int GetResponseErrorCode(ReplyResponse response) => response.Error.Errorno;
3333
protected override IEnumerable<Request> GetRequestsForPage(Page page, CancellationToken stoppingToken = default) =>
3434
[
35-
new(Requester.RequestProtoBuf("c/f/pb/page?cmd=302001", "12.26.1.0",
35+
new(Requester.RequestProtoBuf("c/f/pb/page?cmd=302001", "12.66.1.0",
3636
new ReplyRequest {Data = new()
3737
{ // reverse order will be {"last", "1"}, {"r", "1"}
3838
Kz = (long)tid,

c#/crawler/src/Tieba/Crawl/Crawler/SubReplyCrawler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override IReadOnlyCollection<SubReply> GetValidPosts(SubReplyResponse res
3333
protected override int GetResponseErrorCode(SubReplyResponse response) => response.Error.Errorno;
3434
protected override IEnumerable<Request> GetRequestsForPage(Page page, CancellationToken stoppingToken = default) =>
3535
[
36-
new(Requester.RequestProtoBuf("c/f/pb/floor?cmd=302002", "12.26.1.0",
36+
new(Requester.RequestProtoBuf("c/f/pb/floor?cmd=302002", "12.66.1.0",
3737
new SubReplyRequest {Data = new()
3838
{
3939
Kz = (long)tid,

c#/crawler/src/Tieba/Crawl/Crawler/ThreadCrawler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected override IEnumerable<Request> GetRequestsForPage(Page page, Cancellati
3737
};
3838
return
3939
[
40-
new(Requester.RequestProtoBuf(EndPointUrl, "12.26.1.0",
40+
new(Requester.RequestProtoBuf(EndPointUrl, "12.66.1.0",
4141
new ThreadRequest {Data = data},
4242
(req, common) => req.Data.Common = common,
4343
() => new ThreadResponse(), stoppingToken)),

c#/crawler/src/Tieba/Crawl/Facade/ReplyCrawlFacade.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override void OnPostParse(
2626
{
2727
parsedPosts.Values.ForEach(r => r.Tid = tid);
2828
var data = response.Data;
29-
UserParser.Parse(data.UserList);
29+
UserParser.Parse(data.UserList.Where(u => !(u.LevelId == 0 && u.AlaInfo.LiveStatus != 0)));
3030
if (data.Page.CurrentPage == 1)
3131
_parentThreadTitle = data.PostList.FirstOrDefault(r => r.Floor == 1)?.Title;
3232
}

c#/tbClient/TbClient.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<ItemGroup>
3-
<Compile Include="..\..\tbclient.protobuf\tbm_cs\**" Link="%(RecursiveDir)%(Filename)%(Extension)" />
3+
<Compile Include="..\..\tbclient.protobuf\tbm_csharp\**" Link="%(RecursiveDir)%(Filename)%(Extension)" />
44
</ItemGroup>
55
<ItemGroup>
66
<PackageReference Include="Google.Protobuf" Version="3.27.3" />

tbclient.protobuf

Submodule tbclient.protobuf updated 95 files

0 commit comments

Comments
 (0)