nextcloud / nextcloud/previewgenerator
Make the .nomedia behavior optional and document the feature
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
I was getting crazy trying to understand why some folders were generating previews only when required by client (web or Android app) and the rest of the folders were pre-generating previews as expected by the preview:generate-all command.
Apps in some devices (like WhatsApp in Android) create this .nomedia files automatically to avoid the gallery app of the phone, but if you use auto-upload feature of the Nextcloud Android app you cannot exclude that .nomedia files (at least for now).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/Command/Generate.php at the linked lines 156-161 to understand the current .nomedia behavior. Trace how preview:generate-all is configured, then identify where an option and its documentation belong; done means the behavior can be disabled or enabled as requested and the feature is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100