live-stream-radio icon indicating copy to clipboard operation
live-stream-radio copied to clipboard

Audio & Video directory

Open orophix opened this issue 7 years ago • 5 comments

inside config.json:

 "radio": {
    "audio_directory": "mnt/streamstorage/music/chillstation/",
    "video_directory": "mnt/streamstorage/video/chillstation",

Output:

(node:24226) UnhandledPromiseRejectionWarning: Error: **/home/stream1/chillstation/**mnt/streamstorage/music/chillstation/ does not exist.
    at Object.notExist (/usr/local/lib/node_modules/live-stream-radio/node_modules/find/index.js:41:12)
    at traverseSync (/usr/local/lib/node_modules/live-stream-radio/node_modules/find/index.js:224:38)
    at Object.find.(anonymous function) [as fileSync] (/usr/local/lib/node_modules/live-stream-radio/node_modules/find/index.js:374:5)

Why is it forcing it to read the home path etc.. ?

orophix avatar Nov 05 '18 08:11 orophix

can you try to add a foreslash infront of the mnt? It seems as it's trying to just append your path to your working directory.

**/home/stream1/chillstation/**mnt/streamstorage/music/chillstation/

LauraWebdev avatar Nov 05 '18 09:11 LauraWebdev

Also, does the fs loading even accept absolute paths? I am not sure on this @torch2424

LauraWebdev avatar Nov 05 '18 09:11 LauraWebdev

@AndreasWebdev Dude you are always on it with the issues thank you haha! 😄

Yes, FS should support absolute paths. But currently, I think think that we do 😢 Maybe they can do some symbolic linking to map it to the correct map int he meantime? Definitely should be something we should fix though. If the path starts with a slash, assume it's absolute?

torch2424 avatar Nov 05 '18 21:11 torch2424

Has this been updated yet @torch2424 or do I still need to use symbolic links?

dropitlikecross avatar Feb 08 '19 23:02 dropitlikecross

@dropitlikecross (nice username), unfortunately haven't had time for the project because of my WASM Gameboy thing, and Kingdom Hearts 3. 😞

If possible use Symbolic links for now. Thanks! 😄

torch2424 avatar Feb 09 '19 00:02 torch2424