eogas / evsonic

A ripoff of subsonic in nodejs with express
zlib License
2 stars 1 forks source link

MediaDir structure traversable on web client #3

Open eogas opened 10 years ago

eogas commented 10 years ago

The user needs to be able to view media directories and drill in to subdirectories on the /music tab of the web client.

eogas commented 10 years ago

The /music tab currently shows the base media dirs. The next step is to fetch the full path from the URL, to show subdirectory mediadirs. Finally, each mediadir listing should correctly link to the directory's url.

eogas commented 10 years ago

Currently rethinking this. My original plan was to have the complete path be present in the url, like so:

localhost:8080/music/MyMusicFolder/SomeBand/BestAlbumEver

however it would be much easier to simply use the id of the mediadir. Not sure what way I want to go on this.

eogas commented 10 years ago

I think I will go the ID route, as parsing out the paths, converting to ids and back all over the place sounds like a nightmare. Especially when thinking about doing breadcrumbs. I think the way to go is to have the URL contain the full path of IDs, like so:

localhost:8080/music/3/14/59

And the route will just have to do a recursive db fetch to traverse the structure and get all the mediadirs in the path.