From 693dbfd02e5d3abe1bd7dc4fedc18bf47560681f Mon Sep 17 00:00:00 2001 From: s1eve-mcdichae1 <92833764+s1eve-mcdichae1@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:04:58 -0700 Subject: [PATCH] skyscraper - prevent hall-of-mirrors effect (#3704) patch config.ini: don't cache already-processed screenshots from local source 'esgamelist' --- scriptmodules/supplementary/skyscraper.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scriptmodules/supplementary/skyscraper.sh b/scriptmodules/supplementary/skyscraper.sh index 3f6ec83c..76c06f1d 100644 --- a/scriptmodules/supplementary/skyscraper.sh +++ b/scriptmodules/supplementary/skyscraper.sh @@ -210,7 +210,10 @@ function _init_config_skyscraper() { done # If we don't have a previous config.ini file, copy the example one - [[ ! -f "$scraper_conf_dir/config.ini" ]] && cp "$md_inst/config.ini.example" "$scraper_conf_dir/config.ini" + if [[ ! -f "$scraper_conf_dir/config.ini" ]]; then + cp "$md_inst/config.ini.example" "$scraper_conf_dir/config.ini" + sed -i 's/\[esgamelist\]/[esgamelist]\ncacheScreenshots="false"/' "$scraper_conf_dir/config.ini" + fi # Try to find the rest of the necessary files from the qmake build file # They should be listed in the `unix:examples.file` configuration line