Skip to content
New issue

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

v0.6.0 event vars missing \n delimiter #1391

Open
moodeaudio opened this issue Nov 4, 2024 · 0 comments
Open

v0.6.0 event vars missing \n delimiter #1391

moodeaudio opened this issue Nov 4, 2024 · 0 comments
Labels

Comments

@moodeaudio
Copy link

Hi,

I'm processing the track metadata in a bash event script and noticed that the env vars ARTISTS, ALBUM_ARTISTS and COVERS which should be \n delimited according to the wiki don't appear to contain these delimiters but instead are delimited by space.

Config
pi-5
PiOS bookworm
librespot v0.6.0
moOde 9.1.4 (latest)

Event script

if [[ $PLAYER_EVENT == "track_changed" ]]; then
	echo -e $ARTISTS > /home/pi/tim.txt
	echo -e $ALBUM_ARTISTS >> /home/pi/tim.txt
	echo -e $COVERS >> /home/pi/tim.txt
fi

Example Output
The two artists are: "softy" and "Dimension 32" and appear as "softy, Dimension 32" in the IOS app. The album artist is "softy".

pi@moode9:~ $ cat ./tim.txt
softy Dimension 32
softy
https://i.scdn.co/image/ab67616d0000b273f7b85abe57aba92059088752 https://i.scdn.co/image/ab67616d00001e02f7b85abe57aba92059088752 https://i.scdn.co/image/ab67616d00004851f7b85abe57aba92059088752

Output should be

pi@moode9:~ $ cat ./tim.txt
softy
Dimension 32
softy
https://i.scdn.co/image/ab67616d0000b273f7b85abe57aba92059088752
https://i.scdn.co/image/ab67616d00001e02f7b85abe57aba92059088752
https://i.scdn.co/image/ab67616d00004851f7b85abe57aba92059088752
@moodeaudio moodeaudio added the bug label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant