From adf88bb46e129a35de5dbc75e118212cccedc740 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 3 Aug 2016 22:37:54 +0200 Subject: [PATCH] - 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 --- ChangeLog | 3 +++ script.d/common.sh | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0bf0e4..aab2a88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/script.d/common.sh b/script.d/common.sh index 40be5a0..7df54db 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -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