Closed mattiasghodsian closed 4 months ago
I cant seem to get genre to split using comma, When adding GONIC_MULTI_VALUE_GENRE="delim ," i get a warning in the log that its not set
what is the error that you get?
I cant seem to get genre to split using comma, When adding GONIC_MULTI_VALUE_GENRE="delim ," i get a warning in the log that its not set
what is the error that you get?
- GONIC_MULTI_VALUE_GENRE="delim ,"
gonic_1 | 2024/02/20 14:17:00 error parsing args: error parsing env vars: error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": unknown multi value mode "\"delim". should be "none" | "multi" | "delim <delim>"; error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": unknown multi value mode "\"". should be "none" | "multi" | "delim <delim>"
can you try this in your docker compose instead
environment:
- "GONIC_MULTI_VALUE_GENRE=delim ,"
- "GONIC_MULTI_VALUE_GENRE=delim ,"
same issue
whats the error message this time?
maybe try just
environment:
- GONIC_MULTI_VALUE_GENRE=delim ,
whats the error message this time?
maybe try just
environment: - GONIC_MULTI_VALUE_GENRE=delim ,
i did that previews with same result
with the same error message? are you sure you did a docker compose up?
- GONIC_MULTI_VALUE_GENRE=delim ,
user1@tattoine:~/docker/app/gonic$ docker-compose up
Starting gonic_gonic_1 ... done
Attaching to gonic_gonic_1
gonic_1 | 2024/02/20 15:19:21 error parsing args: error parsing env vars: error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": no delimiter provided for delimiter mode; error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": unknown multi value mode "". should be "none" | "multi" | "delim <delim>"
gonic_1 | 2024/02/20 15:19:22 error parsing args: error parsing env vars: error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": no delimiter provided for delimiter mode; error setting flag "multi-value-genre" from env var "GONIC_MULTI_VALUE_GENRE": unknown multi value mode "". should be "none" | "multi" | "delim <delim>"
gonic_gonic_1 exited with code 1
what is the output of docker inspect <gonic container name> | jq ".[].Config.Env"
ohh, i know what the issue is
docker inspect
| jq ".[].Config.Env"
[
"TZ=Europe/Stockholm",
"GONIC_SCAN_INTERVAL=5",
"GONIC_GENRE_SPLIT=,",
"GONIC_SCAN_WATCHER_ENABLED=1",
"GONIC_MULTI_VALUE_GENRE=delim ,",
"GONIC_MULTI_VALUE_ARTIST=multi",
"GONIC_MULTI_VALUE_ALBUM_ARTIST=multi",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GONIC_DB_PATH=/data/gonic.db",
"GONIC_LISTEN_ADDR=:80",
"GONIC_MUSIC_PATH=/music",
"GONIC_PODCAST_PATH=/podcasts",
"GONIC_CACHE_PATH=/cache",
"GONIC_PLAYLISTS_PATH=/playlists"
]
hi, the issue is that the config parser gonic uses treats ,
as a multi item delimiter (for example multiple music dirs)
i've just updated it to a version that supprots escapting the delimiter with \
so you should be able to write
GONIC_MULTI_VALUE_GENRE=delim \,
as for the podcast issue, as fix was pushed
unfortunately the nightly builds are broken since #467 so you'll have to wait for that
gonic version: 0.16.2 type: docker image: sentriz/gonic:nightly
I currently have 2 problems with my gonic setup.
GONIC_MULTI_VALUE_GENRE="delim ,"
i get a warning in the log that its not setgonic directory files from host view
start up log
docker-compose.yml