Fix new URL for annotated game PGNs.

This commit is contained in:
vonavi 2014-11-15 14:42:28 +03:00
parent dab945c87f
commit 90446a4987

View File

@ -230,7 +230,7 @@ trap "rm ${tmp_ini} ${tmp_ini}.prev ${tmp_pgn}" EXIT
# Download PGN file
[[ $1 =~ ^(http://[^/]*)/([^/]*) ]]
# 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."
game_get_players