+ String pgn = regex(
+ request(
+ gameUrl
+ ),
+ getSettings().getGameUrlRegex()
+ );
+ if (pgn == null || !isPgnFormat(pgn)) {
+ throw new ChessHogScannerException(
+ String.format("Failed to get PGN for requesting URL: %s", gameUrl)
+ );
+ }
+ return new PGNGame(
+ null,
+ pgn
+ );