commit 11fb96b501598f4704a10938b0cb8e54f7a58d4b
parent 183fe98ebaa13600b146bdd97e29f1729091a606
Author: regexghost <dev@regexghost.com>
Date: Tue, 28 Jul 2026 21:58:33 +0100
minor change to music scripts + bug fix in hltb
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/panel-scripts/music-moc.sh b/panel-scripts/music-moc.sh
@@ -77,10 +77,10 @@ fi
# Check for sub playlists
if [ $(find "$playlist_path" -type d | wc -l) -ne 1 ]; then
- playlist="$(ls "$playlist_path" | sed 's/\([A-Z][a-z]\)/ \1/g' | sed 's/\([a-z]\)\([0-9]\)/\1 \2/g' | sed 's/^ //g' | awk 'BEGIN {RS = ""} {print "All Songs\n"$0}' | "${DMENU_SCRIPT}" "Select Playlist:")"
+ playlist="$(ls "$playlist_path" | sed 's/\([A-Z][a-z]\)/ \1/g' | sed 's/\([a-z]\)\([0-9]\)/\1 \2/g' | sed 's/^ //g' | awk 'BEGIN {RS = ""} {print "All\n"$0}' | "${DMENU_SCRIPT}" "Select Playlist:")"
[ "$?" != "0" ] && exit
# If all songs, don't change playlist path
- if ! [ "$playlist" = "All Songs" ]; then
+ if ! [ "$playlist" = "All" ]; then
playlist_path="$playlist_path/$(echo "$playlist" | sed 's/ //g')"
fi
fi
diff --git a/panel-scripts/music-mpd.sh b/panel-scripts/music-mpd.sh
@@ -61,10 +61,10 @@ fi
# Check for sub playlists
if [ $(find "$playlist_path" -type d | wc -l) -ne 1 ]; then
- playlist="$(ls "$playlist_path" | sed 's/\([A-Z][a-z]\)/ \1/g' | sed 's/\([a-z]\)\([0-9]\)/\1 \2/g' | sed 's/^ //g' | awk 'BEGIN {RS = ""} {print "All Songs\n"$0}' | "${DMENU_SCRIPT}" "Select Playlist:")"
+ playlist="$(ls "$playlist_path" | sed 's/\([A-Z][a-z]\)/ \1/g' | sed 's/\([a-z]\)\([0-9]\)/\1 \2/g' | sed 's/^ //g' | awk 'BEGIN {RS = ""} {print "All\n"$0}' | "${DMENU_SCRIPT}" "Select Playlist:")"
[ "$?" != "0" ] && exit
# If all songs, don't change playlist path
- if ! [ "$playlist" = "All Songs" ]; then
+ if ! [ "$playlist" = "All" ]; then
playlist_path="$playlist_path/$(echo "$playlist" | sed 's/ //g')"
fi
fi
diff --git a/terminal-scripts/howlongtobeat.py b/terminal-scripts/howlongtobeat.py
@@ -39,7 +39,7 @@ gameName = ' '.join(args).rstrip()
if not outputJson:
print("Searching for game: " + gameName)
-results = HowLongToBeat().search(gameName)
+results = HowLongToBeat(0.0).search(gameName)
length = len(results)