Fix new URL for annotated game PGNs.
This commit is contained in:
parent
dab945c87f
commit
90446a4987
2
game-add
2
game-add
@ -230,7 +230,7 @@ trap "rm ${tmp_ini} ${tmp_ini}.prev ${tmp_pgn}" EXIT
|
|||||||
# Download PGN file
|
# Download PGN file
|
||||||
[[ $1 =~ ^(http://[^/]*)/([^/]*) ]]
|
[[ $1 =~ ^(http://[^/]*)/([^/]*) ]]
|
||||||
# Link to annotated PGN
|
# Link to annotated PGN
|
||||||
pgn_url=${BASH_REMATCH[1]}/game/pgn/${BASH_REMATCH[2]::8}.pgn
|
pgn_url=${BASH_REMATCH[1]}/game/export/${BASH_REMATCH[2]::8}.pgn
|
||||||
wget -q "$pgn_url" -O $tmp_pgn || die "PGN file not found."
|
wget -q "$pgn_url" -O $tmp_pgn || die "PGN file not found."
|
||||||
|
|
||||||
game_get_players
|
game_get_players
|
||||||
|
Loading…
Reference in New Issue
Block a user