Skip to content

Commit

Permalink
なんG/Jの変換に失敗するのへの対応
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Jun 22, 2023
1 parent e898bd1 commit 55a88f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions HtmlConverter/HtmltoDat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ public Byte[] Gethtml(String URI, int range, String UA, bool CRReplace, String L
// 2023年6月ごろから導入の新HTML形式
System.Diagnostics.Debug.WriteLine("CGI ver202306形式");

// 1400行ほど飛ばす
for (int i = 0; i <= 1400; ++i)
// 1300行ほど飛ばす
// /1-で取ると1300行くらいしか前がない場合がある(なんG/なんJとか)
for (int i = 0; i <= 1300; ++i)
{
html.ReadLine();
}
Expand All @@ -206,6 +207,7 @@ public Byte[] Gethtml(String URI, int range, String UA, bool CRReplace, String L
// 先に終端に到達したらやめる
if (html.EndOfStream)
{
System.Diagnostics.Debug.WriteLine("本文発見に失敗");
break;
}

Expand Down

1 comment on commit 55a88f4

@onihusube
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#11

Please sign in to comment.