From 02d4729ca13f9b4b9a57c073de4fad6bfd77abe3 Mon Sep 17 00:00:00 2001
From: jetfir3 <95306468+jetfir3@users.noreply.github.com>
Date: Wed, 22 Nov 2023 09:49:36 -0500
Subject: [PATCH] Support 1.2.25.1011.g0348b2ea
---
README.md | 2 +-
spotx.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 3b447fe..498a0d0 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
Adblock for the Spotify desktop client on Linux & macOS
- Latest supported version: 1.2.25.1009.g075ce884
+ Latest supported version: 1.2.25.1011.g0348b2ea
diff --git a/spotx.sh b/spotx.sh
index 8afd1d1..6422452 100644
--- a/spotx.sh
+++ b/spotx.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-buildVer="1.2.25.1009.g075ce884"
+buildVer="1.2.25.1011.g0348b2ea"
case $(uname | tr '[:upper:]' '[:lower:]') in
darwin*) platformType='macOS' ;;
@@ -190,7 +190,7 @@ search_path_linux () {
local path="${path}"
local timeLimit=$(($(date +%s) + timeout))
while (( $(date +%s) < "${timeLimit}" )); do
- installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -10M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev)
+ installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -10M -size +3M -print -quit 2>/dev/null | grep -v "snap" | rev | cut -d/ -f3- | rev)
[[ -n "${installPath}" ]] && return 0
pgrep -x find > /dev/null || break
sleep 1