blastbeng / spotisub

Spotify to subsonic Playlist Generator and Importer
MIT License
105 stars 6 forks source link

Cosmetic issue with PLAYLIST_PREFIX #26

Closed janaxhell closed 2 months ago

janaxhell commented 2 months ago

If I set - PLAYLIST_PREFIX="Z - "

playlists will appear as "Z - "Queen Recommendations

If I set it to - PLAYLIST_PREFIX=Z (with a space after Z)

playlists will appear as ZQueen Recommendations

Quotation marks are ugly, but also a space after the prefix is needed.

blastbeng commented 2 months ago

Very strange. in my local env that doesn't happen

image

Maybe it is something related to Docker environment, gonna sort this out.

janaxhell commented 2 months ago

Maybe it's Portainer again. I always deploy from there.

blastbeng commented 2 months ago

Maybe it's Portainer again. I always deploy from there.

Don't worry, i am installing portainer now to try to replicate this, I am sure I'll find a solution.

rantanlan commented 2 months ago

it's not portainer, i have this too. environments are set directly in the compose stack. without the quotaion marks the space get's ignored.

blastbeng commented 2 months ago

it's not portainer, i have this too. environments are set directly in the compose stack. without the quotaion marks the space get's ignored.

It is docker compose fault.

Now the correct way to set the variable is PLAYLIST_PREFIX="Prefix - "

I reccomend you to not use special chars like "'myplaylist' -01 '" in this variable, or something like ""Z PLAYLISTS" -". it won't work and will generate ugly names.

releasing soon.

blastbeng commented 2 months ago

Resolved in Release v0.2.0

Please reopen this issue if you still encounter errors