Update Downloader.bash

This commit is contained in:
RandomNinjaAtk 2023-08-10 20:10:38 +00:00 committed by GitHub
parent efdc3f2142
commit f8b0c67f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,12 +523,19 @@ do
fileName="$(basename "$filteredOtherRoms")" fileName="$(basename "$filteredOtherRoms")"
fileName="$(UrlDecode "$fileName")" fileName="$(UrlDecode "$fileName")"
romUrl="$filteredOtherRoms" romUrl="$filteredOtherRoms"
if [ ! -z "$fileName" ]; then
log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)" log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)"
fi
else else
log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found..." log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found..."
continue continue
fi fi
if [ -z "$fileName" ]; then
log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found ($archiveContentsUrl)..."
continue
fi
# verify download # verify download
if [ -f "${outputdir}${subFolder}${fileName}" ]; then if [ -f "${outputdir}${subFolder}${fileName}" ]; then
DownloadFileVerification "${outputdir}${subFolder}${fileName}" DownloadFileVerification "${outputdir}${subFolder}${fileName}"