Skip to content

Commit fa4a056

Browse files
killer4989open774
authored andcommitted
bintan 読み込み対応
1 parent 4907729 commit fa4a056

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/P2Util.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,13 +1885,21 @@ static public function detectThread($url = null)
18851885
}
18861886

18871887
// 2ch or pink by ula.cc(bintan / bekkanko) - http://choco.2ch.net/test/read.cgi/event/1027770702/
1888-
} elseif (preg_match('<^https?://(?:(?:bintan|same)\\.ula\\.cc|ula\\.2ch\\.net)/test/(?:read\\.(?:cgi|html|so)|r\\.so)
1888+
} elseif (preg_match('<^https?://(?:(?:bintan|same)\\.ula\\.cc|ula\\.(?:2ch|5ch)\\.net)/test/(?:read\\.(?:cgi|html|so)|r\\.so)
18891889
/(.+)/(\\w+)/([0-9]+)(?:/([^/]*))>x', $nama_url, $matches)) {
18901890
$host = $matches[1];
18911891
$bbs = $matches[2];
18921892
$key = $matches[3];
18931893
$ls = (isset($matches[4]) && strlen($matches[4])) ? $matches[4] : '';
18941894

1895+
// 2ch or pink by ula.cc(new bintan) - http://choco.2ch.net/test/read.cgi/event/1027770702/
1896+
} elseif (preg_match('<^https?://(ula\\.(?:2ch|5ch)\\.net)/(?:2ch|5ch)
1897+
/(\\w+)/(.+)/(\\d+)(?:/([^/]*))>x', $nama_url, $matches)) {
1898+
$host = $matches[3];
1899+
$bbs = $matches[2];
1900+
$key = $matches[4];
1901+
$ls = (isset($matches[5]) && strlen($matches[5])) ? $matches[5] : '';
1902+
18951903
// 2ch or pink 過去ログhtml - http://pc.2ch.net/mac/kako/1015/10153/1015358199.html
18961904
} elseif (preg_match('<^(https?://(.+)(?:/[^/]+)?/(\\w+)
18971905
/kako/\\d+(?:/\\d+)?/(\\d+)).html>x', $nama_url, $matches)) {

0 commit comments

Comments
 (0)