Add a datasource.0 file saying "template" if we need it
authorSteve McIntyre <steve@einval.com>
Thu, 1 Mar 2018 19:01:57 +0000 (19:01 +0000)
committerSteve McIntyre <steve@einval.com>
Thu, 1 Mar 2018 19:01:57 +0000 (19:01 +0000)
abcde

diff --git a/abcde b/abcde
index c5b8ece..5e2d41e 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -2865,6 +2865,7 @@ do_cddbedit ()
                                                vecho "Creating empty CDDB template..."
                                                UNKNOWNDISK=y
                                                $CDDBTOOL template $(cat "${ABCDETEMPDIR}/cddbdiscid") > "${ABCDETEMPDIR}/cddbread.0"
+                                               echo "template" > "${ABCDETEMPDIR}/datasource.0"
                                        else
                                                ATITLE=$(grep -a ^DTITLE= "${ABCDETEMPDIR}/cddbread.$CDCHOICENUM" | cut -f2- -d= | tr -d \\r\\n)
                                                SOURCE=$(cat "${ABCDETEMPDIR}/datasource.$CDCHOICENUM")
@@ -5036,6 +5037,7 @@ if [ "$DOCDDB" = "y" ]; then
                                vecho "Unable to find any matches, generating unknown template."
                                echo "No lookup matches." >> "${ABCDETEMPDIR}/cddbchoices"
                                $CDDBTOOL template $(cat "${ABCDETEMPDIR}/cddbdiscid") > "${ABCDETEMPDIR}/cddbread.0"
+                               echo "template" > "${ABCDETEMPDIR}/datasource.0"
                                # List out disc title/author and contents of template
                                echo ---- Unknown Artist / Unknown Album ---- >> "${ABCDETEMPDIR}/cddbchoices"
                                UNKNOWNDISK=y