nextcloud / nextcloud/previewgenerator

Make the .nomedia behavior optional and document the feature

Open
#192 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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).

https://github.com/rullzer/previewgenerator/blob/5a5c5220e6d472f76d33cd02518ff769ed35277e/lib/Command/Generate.php#L156-L161

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.