diff --git a/functions/generateGameLists.sh b/functions/generateGameLists.sh index e1348eaae..1a53d1584 100644 --- a/functions/generateGameLists.sh +++ b/functions/generateGameLists.sh @@ -14,7 +14,7 @@ generateGameLists_pythonEnv() { generateGameLists() { - generateGameLists_pythonEnv + generateGameLists_pythonEnv &> /dev/null local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1) local dest_folder="$accountfolder/config/grid/retrolibrary/artwork/" @@ -42,6 +42,7 @@ generateGameLists() { } generateGameListsJson() { + generateGameLists_pythonEnv &> /dev/null echo "Adding Games" > "$MSG" #python $HOME/.config/EmuDeck/backend/tools/retro-library/generate_game_lists.py "$romsPath" echo "Games Added" > "$MSG" @@ -51,10 +52,12 @@ generateGameListsJson() { } generateGameLists_importESDE() { + generateGameLists_pythonEnv &> /dev/null python $HOME/.config/EmuDeck/backend/tools/retro-library/import_media.py "$romsPath" "$dest_folder" } generateGameLists_artwork() { + generateGameLists_pythonEnv &> /dev/null echo "Searching for missing artwork" > "$MSG" python $HOME/.config/EmuDeck/backend/tools/retro-library/missing_artwork_platforms.py "$romsPath" "$storagePath/retrolibrary/artwork" && python $HOME/.config/EmuDeck/backend/tools/retro-library/download_art_platforms.py "$storagePath/retrolibrary/artwork" @@ -63,6 +66,7 @@ generateGameLists_artwork() { } saveImage(){ + generateGameLists_pythonEnv &> /dev/null local url=$1 local name=$2 local system=$3 @@ -73,6 +77,7 @@ saveImage(){ } function addGameListsArtwork() { + generateGameLists_pythonEnv &> /dev/null local file="$1" local appID="$2" local platform="$3" @@ -98,7 +103,7 @@ function addGameListsArtwork() { } generateGameLists_getPercentage() { - + generateGameLists_pythonEnv &> /dev/null local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1) local dest_folder="$storagePath/retrolibrary/artwork/" @@ -123,6 +128,7 @@ generateGameLists_getPercentage() { } generateGameLists_extraArtwork() { + generateGameLists_pythonEnv &> /dev/null local game=$1 local platform=$2 local hash=$3 @@ -144,6 +150,7 @@ generateGameLists_extraArtwork() { } generateGameLists_retroAchievements(){ + generateGameLists_pythonEnv &> /dev/null local hash=$1 local system=$2 local localDataPath="$storagePath/retrolibrary/achievements/$system.json" @@ -151,6 +158,7 @@ generateGameLists_retroAchievements(){ } generateGameLists_downloadAchievements(){ + generateGameLists_pythonEnv &> /dev/null local folder="$storagePath/retrolibrary/achievements" if [ ! -d $folder ]; then echo "Downloading Retroachievements Data" > "$MSG" @@ -162,6 +170,7 @@ generateGameLists_downloadAchievements(){ } generateGameLists_downloadData(){ + generateGameLists_pythonEnv &> /dev/null local folder="$storagePath/retrolibrary/data" local accountfolder=$(ls -td $HOME/.steam/steam/userdata/* | head -n 1) ln -s "$folder" "$accountfolder/config/grid/retrolibrary/data"