We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The usecase is to be able to select xesam:albumArtist when it exists, and fallback to xesam:artist if it does not.
Currently I work around this using the below:
IFS='|' read -ra METADATA <<< "$(playerctl metadata --format '{{xesam:albumArtist}}|{{artist}}|{{title}}' 2>/dev/null)" if [ "${METADATA[0]}" ]; then echo "${METADATA[0]} - ${METADATA[2]}" elif [ "${METADATA[1]}" ]; then echo "${METADATA[1]} - ${METADATA[2]}" fi