bugfix (browse) and improved style

This commit is contained in:
2025-10-06 21:50:37 +02:00
parent dc45f26299
commit a40e397a06
2 changed files with 6 additions and 6 deletions

View File

@@ -73,9 +73,9 @@ BEGIN {
dur = sprintf(fmtduration, dur)
title = $7 ? sprintf(fmttitle, escape($7)) : ""
artist = $8 ? sprintf(fmtartist, escape($8)) : ""
if (flagged[mbid] && $9)
flagged[mbid] = $9
current = $10
if (current || (flagged[mbid] && $9))
flagged[mbid] = $9
# Transform data and fill placeholders
if (flagged[mbid])
gsub("<<flag>>", flag_local, line)
@@ -92,5 +92,5 @@ BEGIN {
else
gsub("<<playing>>", playing_no, line)
}
print line, "0", releaseid ? releaseid : "0", mbid, flagged[mbid] ? flagged[mbid] : (current ? $9 : "")
print line, "0", releaseid ? releaseid : "0", mbid, flagged[mbid] ? flagged[mbid] : ""
}

View File

@@ -557,7 +557,7 @@ while true; do
--bind="$KEYS_LIST_ALBUMS:print($VIEW_LIST_ALBUMS)+accept" \
--bind="$KEYS_SEARCH_ARTIST:print($VIEW_SEARCH_ARTIST)+accept" \
--bind="$KEYS_SEARCH_ALBUM:print($VIEW_SEARCH_ALBUM)+accept" \
--bind="$KEYS_BROWSE:execute-silent:open \"https://musicbrainz.org/artist/{r3}\"" \
--bind="$KEYS_BROWSE:execute-silent:open \"https://musicbrainz.org/artist/{r4}\"" \
--bind="$KEYS_SHOW_PLAYLIST:print($VIEW_PLAYLIST)+print()+accept" \
--bind="$KEYS_KEYBINDINGS:preview:$0 --show-keybindings $VIEW_SELECT_ARTIST" \
--bind="$KEYS_SCROLL_PREVIEW_DOWN:preview-down" \
@@ -608,7 +608,7 @@ while true; do
--bind="$KEYS_LIST_ALBUMS:print($VIEW_LIST_ALBUMS)+accept" \
--bind="$KEYS_SEARCH_ARTIST:print($VIEW_SEARCH_ARTIST)+accept" \
--bind="$KEYS_SEARCH_ALBUM:print($VIEW_SEARCH_ALBUM)+accept" \
--bind="$KEYS_BROWSE:execute-silent:open \"https://musicbrainz.org/\track/{r3}\"" \
--bind="$KEYS_BROWSE:execute-silent:open \"https://musicbrainz.org/\track/{r4}\"" \
--bind="$KEYS_OPEN:execute-silent:open \"\$(dirname {5})\"" \
--bind="$KEYS_N_YANK:execute-silent:printf {4} | $CLIP)" \
--bind="$KEYS_YANK_CURRENT:execute-silent:printf {3} | $CLIP" \
@@ -701,7 +701,7 @@ case $FZF_CURRENT_VIEW in
$VIEW_RELEASEGROUP) t=release ;;
$VIEW_RELEASE) t=track ;;
esac
open \"https://musicbrainz.org/\$t/{r3}\"" \
open \"https://musicbrainz.org/\$t/{r4}\"" \
--bind="$KEYS_OPEN:execute-silent:
[ {5} ] || exit 0
open \"\$(dirname {5})\"" \