torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻
https://torch2424.github.io/live-stream-radio/
241 stars 64 forks source link

Audio & Video directory #103

Open orophix opened 6 years ago

orophix commented 6 years ago

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.. ?

LauraWebdev commented 6 years ago

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 commented 6 years ago

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

torch2424 commented 6 years ago

@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?

dropitlikecross commented 5 years ago

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

torch2424 commented 5 years ago

@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! 😄