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

Photos: directories with .nomedia files are scanned #143

Closed
paullbn opened this issue Sep 9, 2019 · 15 comments · Fixed by #726
Closed

Photos: directories with .nomedia files are scanned #143

paullbn opened this issue Sep 9, 2019 · 15 comments · Fixed by #726

Comments

@paullbn
Copy link

paullbn commented Sep 9, 2019

Hello,

Pictures located in directories containing a .nomedia files are scanned and displayed in Maps.

@jancborchardt
Copy link
Member

Good point, they should be omitted, as probably all hidden folders and files.

@FelixBuehler
Copy link

Maybe even add an option to only scan specific folders. I have a lot of folders with no relevant data or photos in there but are quite big.
So a parameter like occ maps:scan-photos userX /Photos would be a good idea.

@jancborchardt
Copy link
Member

@FelixBuehler we need to make sure that things we add work for regular people too. And it’s always best to do that automatically, without specific settings. :) A simpler fix could just be which folders are prioritized, e.g. well-known locations like a "Pictures" or "Photos" folder can be done first.

@FelixBuehler
Copy link

But why isn't a folder-name parameter working for all users? I mean the parameter could be optional. And if I set it, just my folder 'Photos' or 'Pics' or 'Cats' will be scanned.

@jancborchardt
Copy link
Member

Most people do not change defaults or fiddle with settings. Hence we first have to focus on making sure it’s performant in the default case.

@SimpleRealDT
Copy link

found that external storage are also scanned, that a lot of cache picture from telegram or other application that shoot by others displayed in my nextcloud maps. excluding external storage or excluding some folders will be useful

@GAS85
Copy link

GAS85 commented May 25, 2021

Any update here? Quite needed feature, otherwise I can see only tracks from backup of PhoneTrack App, but not actual one...

@schklom
Copy link

schklom commented Jun 5, 2021

I made a PR #617, but didn't test it. Does anyone care to try building it to see if it works?
The new code is pretty staightforward 😃
Note that the indentation in the PR isn't the same as the one in the file, I don't understand why.

Hopefully it works 🚀

PS: yes, I like emojis

@Derkades
Copy link

Derkades commented Jun 5, 2021

Note that the indentation in the PR isn't the same as the one in the file, I don't understand why.

This is because you used tabs while the rest of the code uses spaces. Your text editor likely displays tabs as 4 spaces while github uses 8.

@schklom
Copy link

schklom commented Jun 5, 2021

This is because you used tabs while the rest of the code uses spaces.

I didn't notice x) Thanks!
I updated the PR.

@b3nis
Copy link

b3nis commented Aug 16, 2021

It would be amazing to be able to choose which folders it scans. It's not usable for me now since it picks up so much stuff that I don't want.
Default could everything and then just have something under settings where I can pick which folders and re-scan.

With that this would be so freaking cool - I love the idea of the app!

@strugee
Copy link
Member

strugee commented Aug 19, 2021

@b3nis that sounds like a different feature request. Can you see if it's already on file and if not, open a new issue? You may want to link nextcloud/photos#141 too since it would probably make sense for these to share the same setting.

@b3nis
Copy link

b3nis commented Aug 19, 2021

@b3nis that sounds like a different feature request. Can you see if it's already on file and if not, open a new issue? You may want to link nextcloud/photos#141 too since it would probably make sense for these to share the same setting.

Sorry, my bad. Please ignore my comment nextcloud/photos#141 is exactly what I was looking for, will cheer on that discussion :-)

@AykutCevik
Copy link

Any chance that this will be fixed?

@tacruc
Copy link
Collaborator

tacruc commented Mar 27, 2022

Maybe an approach along the same line as: nextcloud/photos#944
is easy to implement.

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

Successfully merging a pull request may close this issue.