- use gdown.pl for drive.google.* download links

- for download links on Mega tell user where to download manually
- for download links on Mediafire tell user where to download manually
This commit is contained in:
Christopher Roy Bratusek 2016-08-03 22:37:54 +02:00
parent 2324d2b90c
commit adf88bb46e
2 changed files with 16 additions and 1 deletions

View File

@ -12,6 +12,9 @@ v7.0.0:
writeable, else fallback to ${HOME}
- fix telling user path to Hans Files for all Pokemon game hacks
- make the script more robust against directories with spaces in their names
- use gdown.pl for drive.google.* download links
- for download links on Mega tell user where to download manually
- for download links on Mediafire tell user where to download manually
::configuration file changes
- new configuration variable PATCHIMAGE_3DS_DIR, global directory

View File

@ -413,7 +413,7 @@ check_riivolution_patch () {
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
elif [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
x=4
if [[ ${DOWNLOAD_LINK} == *docs.google* ]]; then
if [[ ${DOWNLOAD_LINK} == *docs.google* || ${DOWNLOAD_LINK} == *drive.google* ]]; then
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
x=5
echo "*** >> downloading"
@ -422,6 +422,18 @@ check_riivolution_patch () {
echo "*** >> unpacking"
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
fi
elif [[ ${DOWNLOAD_LINK} == *mega.nz* ]]; then
echo "can not download from Mega, download manually from:
${DOWNLOAD_LINK}
"
exit 21
elif [[ ${DOWNLOAD_LINK} == *mediafire* ]]; then
echo "can not download from Mediafire, download manually from:
${DOWNLOAD_LINK}
"
exit 21
elif [[ ${DOWNLOAD_LINK} ]]; then
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
x=5