File 2ch-hostname.patch of Package jd-beta
--- ./src/dbtree/root.cpp.orig 2018-04-24 14:36:34.000000000 +0900
+++ ./src/dbtree/root.cpp 2018-08-28 06:43:11.789863591 +0900
@@ -559,7 +559,7 @@
else if( is_JBBS( url ) ){
if( regex.exec( "(https?://[^/]*)/(.*)/(index2?\\.html?)?$" , url, offset, icase, newline, usemigemo, wchar ) ){
- root = "http://jbbs.shitaraba.net";
+ root = regex.str( 1 );
path_board = "/" + regex.str( 2 );
type = TYPE_BOARD_JBBS;
@@ -1549,7 +1549,10 @@
if( ( hostname.find( ".2ch.net" ) != std::string::npos && hostname.find( "info.2ch.net" ) == std::string::npos )
|| ( hostname.find( ".5ch.net" ) != std::string::npos && hostname.find( "info.5ch.net" ) == std::string::npos )
- || hostname.find( ".bbspink.com" ) != std::string::npos ) return true;
+ || hostname.find( ".bbspink.com" ) != std::string::npos
+ || hostname.find( ".2ch.sc" ) != std::string::npos
+ || hostname.find( ".open2ch.net" ) != std::string::npos
+ || hostname.find( ".next2ch.net" ) != std::string::npos ) return true;
return false;
}