typo fixes
This commit is contained in:
@@ -32,7 +32,7 @@ fi
|
||||
readonly SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
readonly GAME_LIST_DIR="$SCRIPT_DIR/gamelists"
|
||||
readonly SYSTEM_NAME="$1"
|
||||
readonly SYSTEM_HTML="GAME_LIST_DIR/$SYSTEM_NAME".html
|
||||
readonly SYSTEM_HTML="$GAME_LIST_DIR/$SYSTEM_NAME".html
|
||||
readonly URL_LIST="$SCRIPT_DIR/${SYSTEM_NAME}.url"
|
||||
readonly COOKIE_FILE="$SCRIPT_DIR/cookie.txt"
|
||||
|
||||
@@ -172,7 +172,7 @@ wget "$URL" -O "$SYSTEM_HTML"
|
||||
|
||||
#process system html to get game url list
|
||||
echo "Processing $SYSTEM_NAME."
|
||||
grep -E "Game/[0-9]+" -Eo "$SYSTEM_HTML" | sort -u | sed 's,Game/,https://retroachievements.org/linkedhashes.php?g=,' "$URL_LIST"
|
||||
grep -E "Game/[0-9]+" -Eo "$SYSTEM_HTML" | sort -u | sed 's,Game/,https://retroachievements.org/linkedhashes.php?g=,' > "$URL_LIST"
|
||||
echo "Found $(wc -l <"$URL_LIST") games."
|
||||
|
||||
#create system folder for webpages with hashes
|
||||
@@ -187,7 +187,7 @@ fi
|
||||
|
||||
#download webpages with hashes form url list
|
||||
echo "Downloading game info ..."
|
||||
wget --random-wait --no-verbose --load-COOKIE_FILEs "${COOKIE_FILE}" -i "${URL_LIST}" -P "./${GAME_LIST_DIR}/${SYSTEM_NAME}"
|
||||
wget --random-wait --no-verbose --load-cookies "${COOKIE_FILE}" -i "${URL_LIST}" -P "./${GAME_LIST_DIR}/${SYSTEM_NAME}"
|
||||
|
||||
#remove tempfiles
|
||||
if test -f "$URL_LIST"; then
|
||||
|
||||
Reference in New Issue
Block a user