[print_future_path] Defined ouput when artist/composer & album/piece is not set

This commit is contained in:
ayakael 2019-02-10 15:21:00 -05:00
parent 555677a1ed
commit ada07ad3a9
No known key found for this signature in database
GPG key ID: DF4ED0DE242BD38A

View file

@ -20,19 +20,19 @@ print_future_path() {
eval local ${tag}='${CURTAG}' eval local ${tag}='${CURTAG}'
done done
[[ -n "${GENRE}" ]] && echo -n "${GENRE}/" [[ -n "${GENRE}" ]] && echo -n "${GENRE}/" || echo -n "Unknown/"
if [[ -n "${CONDUCTOR}" ]]; then if [[ -n "${CONDUCTOR}" ]]; then
[[ -n "${ARTIST}" ]] && echo -n "${ARTIST}/" [[ -n "${ARTIST}" ]] && echo -n "${ARTIST}/" || echo -n "Unknown Composer/"
[[ -n "${ALBUM}" ]] && echo -n "${ALBUM}/" [[ -n "${ALBUM}" ]] && echo -n "${ALBUM}/" || echo -n "Unknown Piece/"
[[ -n "${CONDUCTOR}" ]] && echo -n "${CONDUCTOR}/" [[ -n "${CONDUCTOR}" ]] && echo -n "${CONDUCTOR}/"
[[ -n "${DATE}" ]] && echo -n "${DATE}" [[ -n "${DATE}" ]] && echo -n "${DATE}"
if [[ -n "${DATE}" ]] && [[ -n "${PERFORMER}" ]]; then echo -n " - "; fi if [[ -n "${DATE}" ]] && [[ -n "${PERFORMER}" ]]; then echo -n " - "; fi
[[ -n "${PERFORMER+x}" ]] && echo -n "${PERFORMER}/" [[ -n "${PERFORMER+x}" ]] && echo -n "${PERFORMER}/"
else else
[[ -n "${ARTIST}" ]] && echo -n "${ARTIST}/" [[ -n "${ARTIST}" ]] && echo -n "${ARTIST}/" || echo -n "Unknown Artist/"
[[ -n "${DATE}" ]] && echo -n "${DATE}" [[ -n "${DATE}" ]] && echo -n "${DATE}"
if [[ -n "${DATE}" ]] && [[ -n "${ALBUM}" ]]; then echo -n " - "; fi if [[ -n "${DATE}" ]] && [[ -n "${ALBUM}" ]]; then echo -n " - "; fi
[[ -n "${ALBUM}" ]] && echo -n "${ALBUM}/" [[ -n "${ALBUM}" ]] && echo -n "${ALBUM}/" || echo -n "Unknown Album/"
fi fi
[[ ${TOTALDISCS} -gt 1 ]] && echo -n "${DISCNUMBER}." [[ ${TOTALDISCS} -gt 1 ]] && echo -n "${DISCNUMBER}."