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

Allow Aliases for root music folders #259

Closed
Cherryblue opened this issue Nov 20, 2022 · 2 comments · Fixed by #261
Closed

Allow Aliases for root music folders #259

Cherryblue opened this issue Nov 20, 2022 · 2 comments · Fixed by #261

Comments

@Cherryblue
Copy link

Hi,

The New version of Gonic allows for multiple music folders, which is great for my personal usecase :

  • Having friends around a self hosted dropbox alternative (seafile)
  • Each of my friends having their own music folders (not encrypted, contrary to the other folders)
  • Telling Gonic to take in these music folders

While this seems perfect, I do not decide on the specific names of these folders. They show like this :

  • /friendA/7dd304f9-707b-4b32-a577-99303d82a326_Music
  • /friendB/76ca605b-0d2d-429e-a036-dcde1ed3ec79_Musics

This isn't so great to see on my favorite music client.

Enhancement : Allowing Aliases/Custom Names for "root folders" or "music sources" would be great.
Either in the environment variable, or using gonic web page.

@sentriz
Copy link
Owner

sentriz commented Nov 21, 2022

cool! good idea

now you can specify alias with a "->" syntax

for example

gonic -music-path "music->/my/music" -music-path "friend one->/friend/one" -music-path "friend two->/friend/two

or with env vars

GONIC_MUSIC_PATH=music->/my/music,friend one->/friend/one,friend two->/friend/two

or config file

music-path music->/my/music
music-path friend one->/friend/one
music-path friend two->/friend/two

the syntax is a bit funny but it should do the trick.

spaces are also fine
my nice music -> /path/to/music

sentriz added a commit that referenced this issue Nov 21, 2022
@Cherryblue
Copy link
Author

Works like a charm, thank you Sentriz ! :D

Cherryblue added a commit to Cherryblue/gonic that referenced this issue Feb 16, 2024
Welp I observed readme had never been updated with this feature.
This needs to be mentionned for everyone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants