Page 1 of 1

How to add music in bot without upload function

Posted: Tue May 04, 2021 12:50 pm
by Kayway
Hi, I have A LOT of music i want to add which is stored in the same drive as the bot, so I was wondering if there is a way to add all the music without having to upload them through the web GUI.
I have tried putting the music into the folder where the uploaded music goes but it just doesn't see the files.
Thanks in advance :-D :-D

Re: How to add music in bot without upload function

Posted: Wed May 05, 2021 8:44 am
by Crypto90
Just create a symbolic link into the music folder:
Code: Select all
ln -s /source/folder/path /path/musicbot/music/externalMusic
This creates a symbolic virtual folder called „externalMusic“ into your bots music folder which then points to your large music list folder.

TS3MusicBot can handle symbolic links.

Re: How to add music in bot without upload function

Posted: Wed May 05, 2021 12:02 pm
by Kayway
Crypto90 wrote: Wed May 05, 2021 8:44 am Just create a symbolic link into the music folder:
Code: Select all
ln -s /source/folder/path /path/musicbot/music/externalMusic
This creates a symbolic virtual folder called „externalMusic“ into your bots music folder which then points to your large music list folder.

TS3MusicBot can handle symbolic links.
Thanks for the reply!!
I've tried creating a symbolic link through the debian environment and through windows (I'm using linux subsystem version). But when creating the meta data for the files I get this error:
Code: Select all
New meta data database found. Generating meta data for all available media files...
Exception in thread "Thread-46" java.lang.NullPointerException
        at ts3musicbot.M.a(Unknown Source)
        at ts3musicbot.M.a(Unknown Source)
        at ts3musicbot.M.a(Unknown Source)
        at w.f.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:748)
And then the music section of the webGUI doesn't work and doesn't even let me make a folder.
I'm thinking maybe it has to do with my music collection being too large? it is almost 500gb, will try a smaller size to see if it works.

Re: How to add music in bot without upload function

Posted: Wed May 05, 2021 2:17 pm
by Crypto90
The music collection could be too large.
I will test the symbolic link in the WSL version too, to check if my instructions were still correct.

Re: How to add music in bot without upload function

Posted: Wed May 05, 2021 8:24 pm
by Kayway
Crypto90 wrote: Wed May 05, 2021 2:17 pm The music collection could be too large.
I will test the symbolic link in the WSL version too, to check if my instructions were still correct.
Yes seems it was too large seems to work ok with smaller sizes