Skip to content

Commit

Permalink
pinkのhtml変換時はurlを変えない #6
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Jun 18, 2023
1 parent f045e02 commit e7a45fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions HtmlConverter/HtmltoDat.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -84,7 +84,12 @@ private set
/// <returns></returns>
public Byte[] Gethtml(String URI, int range, String UA, bool CRReplace, String LastMod = null)
{
URI = URI.Replace("test/read.cgi/", "test/read.cgi/c/");
// 現在(23/06/18)pinkはまだ新形式ではない
if (URI.Contains(".5ch.net/"))
{
URI = URI.Replace("test/read.cgi/", "test/read.cgi/c/");
}

System.Diagnostics.Debug.WriteLine($"{URI} をHTML変換開始");
System.Diagnostics.Debug.WriteLine($"Range:{range}, UA:{this.UserAgent}, CRReplace:{CRReplace}, LastMod:{LastMod}");

Expand Down

0 comments on commit e7a45fd

Please sign in to comment.