OxygenCobalt / Auxio

A simple, rational music player for android
GNU General Public License v3.0
2.16k stars 144 forks source link

Scan hidden music files #364

Open john4634 opened 1 year ago

john4634 commented 1 year ago

Description

Screenshot_20230219-105758_Markup Some folders contains cover art image file. So folder is named as ".music" to avoid image showing in gallery. But these folders are not recognised. Please add a feature to recognise these folders if we 'include' these folders.

Problem solved

No response

Other implementations

Other music player like poweramp recognise these type of folder and .nomedia files. Screenshot_20230219-110535_Poweramp

Benefit

This will avoid filling gallery with cover art image.

Duplicates

e-zk commented 1 year ago

Fairly certain the android media provider specifically ignores .nomedia and hidden files by design.
I'm not sure if Auxio would be able to avoid this, and even if it could, I don't think this is desirable for many people. .nomedia in particular is supposed to not be seen by the media provider - that's its whole purpose. (Hidden directories may be different but I'm not sure).

What I do to avoid having the cover art fill my gallery is rename my covers to .cover.jpg (don't know if that still works) - they show fine in Auxio but my gallery app cant see them.

Further, in my gallery app I can exclude the /Music directory entirely so none of them show up.

OxygenCobalt commented 1 year ago

What @e-zk said. This will be resolved however as soon as I can do #322, which is also what poweramp does.

e-zk commented 1 year ago

I was just thinking it may be possible to use the existing include/exclude directory feature? Say, if @john4634, added /.Music to the included directories. Downside being if you have music anywhere else you'd have to manually include those directories too

OxygenCobalt commented 1 year ago

The media database does not scan hidden directories in the first place. "Including" a directory is more like filtering out everything in the media database but that directory, not adding the directory to the media database. Terrible naming, I know, but "Blacklist" and "Whitelist" are divisive to some and I really want to avoid a debate over it.