Open eogas opened 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.
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.
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.
The user needs to be able to view media directories and drill in to subdirectories on the /music tab of the web client.