| 136 |
case BoardPlugIns[ i ].AcceptURL( URL ) of |
case BoardPlugIns[ i ].AcceptURL( URL ) of |
| 137 |
atThread: |
atThread: |
| 138 |
begin |
begin |
| 139 |
tmpThread := TThreadItem.Create( BoardPlugIns[ i ], URL ); |
FItem := BBSsFindBoardFromURL(BoardPlugIns[ i ].ExtractBoardURL(URL)); |
| 140 |
boardURL := tmpThread.BoardPlugIn.GetBoardURL( DWORD( tmpThread ) ); |
//tmpThread := TThreadItem.Create( BoardPlugIns[ i ], FItem, URL ); |
| 141 |
FItem := BBSsFindBoardFromURL( boardURL ); |
//boardURL := tmpThread.BoardPlugIn.GetBoardURL( DWORD( tmpThread ) ); |
| 142 |
|
//FItem := BBSsFindBoardFromURL( boardURL ); |
| 143 |
URL := FItem.URL; |
URL := FItem.URL; |
| 144 |
tmpThread.Free; |
//tmpThread.Free; |
| 145 |
break; |
break; |
| 146 |
end; |
end; |
| 147 |
atBoard: |
atBoard: |
| 148 |
begin |
begin |
| 149 |
tmpBoard := TBoard.Create(BoardPlugIns[ i ], URL); |
//tmpBoard := TBoard.Create(BoardPlugIns[ i ], URL); |
| 150 |
FItem := BBSsFindBoardFromURL( tmpBoard.URL ); |
FItem := BBSsFindBoardFromURL( BoardPlugIns[ i ].ExtractBoardURL(URL) ); |
| 151 |
tmpBoard.Free; |
//tmpBoard.Free; |
| 152 |
if FItem <> nil then begin |
if FItem <> nil then begin |
| 153 |
URL := FItem.URL; |
URL := FItem.URL; |
| 154 |
end; |
end; |
| 257 |
end; |
end; |
| 258 |
|
|
| 259 |
if FItem = nil then begin |
if FItem = nil then begin |
| 260 |
FItem := TThreadItem.Create( board.BoardPlugIn, browsableURL ); |
FItem := TThreadItem.Create( board.BoardPlugIn, board, browsableURL ); |
| 261 |
|
|
| 262 |
FItem.Title := Title; |
FItem.Title := Title; |
| 263 |
board.Add( FItem ); |
board.Add( FItem ); |
| 436 |
if threadItem = nil then begin |
if threadItem = nil then begin |
| 437 |
threadItem := TThreadItem.Create( |
threadItem := TThreadItem.Create( |
| 438 |
board.BoardPlugIn, |
board.BoardPlugIn, |
| 439 |
|
board, |
| 440 |
GikoSys.Get2chBoard2ThreadURL( board, ChangeFileExt( Node.Attributes[ 'thread' ], '' ) ) ); |
GikoSys.Get2chBoard2ThreadURL( board, ChangeFileExt( Node.Attributes[ 'thread' ], '' ) ) ); |
| 441 |
threadItem.Title := Node.Attributes[ 'title' ]; |
threadItem.Title := Node.Attributes[ 'title' ]; |
| 442 |
board.Add( threadItem ); |
board.Add( threadItem ); |