+ @Override
+ public PGNGame scanGame(String gameId, String tournamentId) throws ScannerException {
+ return scanGame(gameId);
+ }
+
+ @Override
+ public PGNGame scanUrl(String gameUrl) throws ScannerException {
+ String gamePage = request(gameUrl);
+ String pgn = StringUtils.match(
+ gamePage,
+ getSettings().getGameUrlRegex()
+ );
+ if (pgn == null || !StringUtils.isPgn(pgn)) {
+ throw new ScannerException(
+ String.format("Failed to get PGN for requesting URL: %s", gameUrl)
+ );
+ }
+ return new PGNGame(
+ null,
+ pgn
+ );
+ }
+
+ private void assignTournamentGames(PGNTournament tournament) throws ScannerException {