[Abcde-users] [PATCH 2/6] Link to Musicbrainz entry in cddb choices list
Snild Dolkow
snild at dolkow.se
Sun Aug 20 08:36:54 BST 2023
This allows the user to look up any extra information they need, without
having to add specific support for it in abcde.
---
abcde | 3 +++
1 file changed, 3 insertions(+)
diff --git a/abcde b/abcde
index cf7e23a..35c0bed 100755
--- a/abcde
+++ b/abcde
@@ -5187,6 +5187,9 @@ if [ "$DOCDDB" = "y" ]; then
AYEAR=${AYEAR:-Unknown year}
SOURCE=$(cat "${ABCDETEMPDIR}/datasource.$X")
echo "#$X ($SOURCE): ---- ${ATITLE} ($AYEAR) ----" >> "${ABCDETEMPDIR}/cddbchoices"
+ if [ "$SOURCE" = "Musicbrainz" ]; then
+ echo "https://musicbrainz.org/release/$(cat "${ABCDETEMPDIR}/mbid.$X" | tr -d '\r\n')" >> "${ABCDETEMPDIR}/cddbchoices"
+ fi
for TRACK in $(f_seq_row 1 $TRACKS)
do
echo "$TRACK:" "$(grep -a ^TTITLE$(($TRACK - 1))= "${ABCDETEMPDIR}/cddbread.$X" | cut -f2- -d= | tr -d \\r\\n)" >> "${ABCDETEMPDIR}/cddbchoices"
--
2.41.0
More information about the Abcde-users
mailing list