We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
How about a default function?
{{default(xesam:albumArtist, xesam:artist)}}
Sorry, something went wrong.
Yep, that'd work perfectly.
fd0b4ab
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: