Off topic
Telika: Plus I'm using gogrepoc, so I have a lot of duplicates (some unwanted languages, some older versions, some 32 bits versions)
On a sidenote: You can configure gogrepoc to ignore patches and languages.
It won't avoid duplicates of course.
I have one download dir for gogrepo and a 2nd directory where I keep my downloaders. After downloading the games with an update flag I manually move the downloaded files
This is the script to download a game without extras.
. $(dirname "$0")/gogrepinit.sh //this one loads the environment variables and the content of the ignore list.
echo downloading to "$targetdir"
mkdir -p "$targetdir"
${pythoncommand} ${gogrepodir}/${gogpyname} download "$targetdir" -skipextras -id $1 $skipfilesargument
Part of the init script:
if [ -z "$filterlist" ]; then
echo "$filterlist variable not found"
else
if [ -f "$filterlist" ]; then
filefilter=`cat "$filterlist" | tr '\n\r' ' '`
fi
if [[ ! -z "$filefilter" ]]; then
skipfilesargument="-skipfiles $filefilter"
echo "INFO: 'skipfilesargument' is $skipfilesargument"
fi
fi
Properties file:
pythoncommand=~/venv.gogrepo/bin/python3.9
gogpyname=gogrepoc_2022_09_22.py
gogrepodir=~/gogrepo
targetdir=/......
batchlist=~/gogrepo_batch_ids.txt
filterlist=~/gogrepo/gogrepoignore.txt
filter file:
patch_*.*
*_?32bit?_*.*
*_32_*
*_fr.*
*_Fr.*
*_FR.*
*_ru.*
*_Ru.*
*_RU.*
*_es.*
*_Es.*
*_ES.*
I am a bit of a noob, when it comes to bash scripts, but it does it's job. Only little adjustments are needed after the download