mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-27 19:44:22 +01:00
- use 'wget -nv' instead of 'wget -q'
This commit is contained in:
parent
e249c66b66
commit
c1972d75e5
@ -3,7 +3,7 @@
|
||||
download_soundtrack () {
|
||||
|
||||
if [[ ${SOUNDTRACK_LINK} && ! -f ${PATCHIMAGE_AUDIO_DIR}/${SOUNDTRACK_ZIP} ]]; then
|
||||
wget -q --no-check-certificate "${SOUNDTRACK_LINK}" \
|
||||
wget -nv --no-check-certificate "${SOUNDTRACK_LINK}" \
|
||||
-O "${PATCHIMAGE_AUDIO_DIR}"/"${SOUNDTRACK_ZIP}" || \
|
||||
( rm "${PATCHIMAGE_AUDIO_DIR}"/"${SOUNDTRACK_ZIP}" && \
|
||||
echo "downloading soundtrack failed." && exit 57 )
|
||||
@ -19,7 +19,7 @@ download_banner () {
|
||||
if [[ ${PATCHIMAGE_BANNER_DOWNLOAD} == "TRUE" ]]; then
|
||||
if [[ ${CUSTOM_BANNER} ]]; then
|
||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr ]]; then
|
||||
wget -q --no-check-certificate "${CUSTOM_BANNER}" \
|
||||
wget -nv --no-check-certificate "${CUSTOM_BANNER}" \
|
||||
-O "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr__tmp || \
|
||||
rm -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr__tmp
|
||||
fi
|
||||
@ -86,7 +86,7 @@ download_riivolution_patch () {
|
||||
* )
|
||||
x=5
|
||||
echo "*** >> downloading"
|
||||
wget -q --no-check-certificate "${DOWNLOAD_LINK}" \
|
||||
wget -nv --no-check-certificate "${DOWNLOAD_LINK}" \
|
||||
-O "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp || \
|
||||
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \
|
||||
echo -e "\nDownload failed!" && exit 57 )
|
||||
@ -105,12 +105,12 @@ download_covers () {
|
||||
|
||||
for path in cover cover3D coverfull disc disccustom; do
|
||||
if [[ ! -f "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png ]]; then
|
||||
wget -q -O "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png \
|
||||
wget -nv -O "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png \
|
||||
http://art.gametdb.com/wii/"${path}"/EN/"${1}".png \
|
||||
|| rm "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png
|
||||
|
||||
if [[ ! -f "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png ]]; then
|
||||
wget -q -O "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png \
|
||||
wget -nv -O "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png \
|
||||
http://art.gametdb.com/wii/"${path}"/US/"${alt}".png \
|
||||
|| rm "${PATCHIMAGE_COVER_DIR}"/"${1}"_"${path}".png
|
||||
fi
|
||||
|
@ -54,7 +54,7 @@ while (-s $FILENAME < 100000) { # only if the file isn't the download yet
|
||||
}
|
||||
|
||||
sub execute_command() {
|
||||
$COMMAND="wget --load-cookie $TEMP/cookie.txt --save-cookie $TEMP/cookie.txt \"$URL\"";
|
||||
$COMMAND="wget -nv --load-cookie $TEMP/cookie.txt --save-cookie $TEMP/cookie.txt \"$URL\"";
|
||||
$COMMAND.=" -O \"$FILENAME\"" if $FILENAME ne '';
|
||||
`$COMMAND`;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user