diff --git a/ra-rom-downloader/Downloader.bash b/ra-rom-downloader/Downloader.bash index 71785ba..cb2387b 100644 --- a/ra-rom-downloader/Downloader.bash +++ b/ra-rom-downloader/Downloader.bash @@ -523,12 +523,19 @@ do fileName="$(basename "$filteredOtherRoms")" fileName="$(UrlDecode "$fileName")" romUrl="$filteredOtherRoms" - log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)" + if [ ! -z "$fileName" ]; then + log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)" + fi else log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found..." continue fi + if [ -z "$fileName" ]; then + log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found ($archiveContentsUrl)..." + continue + fi + # verify download if [ -f "${outputdir}${subFolder}${fileName}" ]; then DownloadFileVerification "${outputdir}${subFolder}${fileName}"