wybiral / tube

Personal video streaming server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple library paths

wybiral opened this issue · comments

commented

It would be useful to support multiple library paths instead of just one. Something like this in the config.json file:

{
  "libraries": [
    {"path": "/path/to/season01", "prefix": "s01"},
    {"path": "/path/to/season02", "prefix": "s02"}
  ]
}

The prefixes will be included in the URL paths, so you might have /v/s01/e01 and so on. This will ensure that all names are unique across multiple library paths and allow for some hierarchical structuring.

Using "prefix" as the key may be too ambiguous though. Consider using "name" or "id" or something.

One question this opens is how to visually convey the path difference in the UI. Especially in the sidebar video selection. Could be another line like the modified field?