From 623297b18a812c3f64c9ae98df695f064c0ed240 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 4 Nov 2024 22:48:05 +0100 Subject: Prefer window title for game name rather than class, fix game names with slash not saving to correct dir --- scripts/save-video-in-game-folder.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/save-video-in-game-folder.sh b/scripts/save-video-in-game-folder.sh index 694c9d8..3d07d6a 100755 --- a/scripts/save-video-in-game-folder.sh +++ b/scripts/save-video-in-game-folder.sh @@ -7,6 +7,7 @@ file_name="$(basename "$filepath")" file_dir="$(dirname "$filepath")" game_name=$(gsr-window-name focused || echo "Game") +game_name="$(echo "$game_name" | tr '/\\' '_')" target_dir="$file_dir/$game_name" new_filepath="$target_dir/$file_name" -- cgit v1.2.3