Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Unlisted directories #661

Open
Rickkwa opened this issue May 20, 2023 · 5 comments
Open

Feature request: Unlisted directories #661

Rickkwa opened this issue May 20, 2023 · 5 comments

Comments

@Rickkwa
Copy link
Contributor

Rickkwa commented May 20, 2023

Is your feature request related to a problem? Please describe.

When you upload a video to Youtube, you can set the visibility of it to Public, Private, or Unlisted. I'm basically looking for that Unlisted feature here. ie. Be able to create folders that do not show up on the UI or search for discovery, but you can still access the content if you have the link to it.

Describe the solution you'd like

A possible implementation is to treat folders' whose name starts with . or _ as unlisted. And of course, this feature will be behind a feature toggle.

Can introduce a couple new options in config.json such as:

Gallery.enableUnlistedDirectories (boolean; default to false): Enable having unlisted directories (doesn't show up in UI or search).
Gallery.unlistedDirectoryPrefix (string; default to "_"): When Gallery.enableUnlistedDirectories is enabled, directories whose name starts with this string will be treated as unlisted.
@Rickkwa Rickkwa changed the title Feature request: Unlisted albums Feature request: Unlisted directories May 20, 2023
@bpatrik
Copy link
Owner

bpatrik commented Oct 14, 2023

I dont mind having it but I do not have the time to develop it.

Essentially, it would be a server side change, that would need wether not select from the DB or post filter the selection.

@fabianus76
Copy link

This feature would be terrific !
I came here to submit the same idea :-)

@Rickkwa
Copy link
Contributor Author

Rickkwa commented Nov 23, 2023

@bpatrik I saw your extension PR (#768) that is in alpha. Very excited for extensions to officially release. Is this feature something that can achieved with the current extension functionality?

@bpatrik
Copy link
Owner

bpatrik commented Nov 23, 2023

Yeah it should be a 5-10 code in the extension to filter out files during indexing.

@bpatrik
Copy link
Owner

bpatrik commented Nov 23, 2023

Ah I reread your the FR.
It is not possible at the moment but happy to add this to extension capability.
You will need something like a gallery listing event. Where you filter what goes down to the client (ie remove the one that you want to hide).

Ping me once the extension is more stable but such event handler is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants