Tired of album art filling your photo gallery? [released]
I'm annoyed because the tracker in the picture gallery shows me all covers of the music albums. They are available as AlbumArtSmall.jpg, AlbumArtBig.jpg, Folder.jpg or cover.jpg. I don't want to delete them, especially since I synchronize the entire music storage between my mobile phone, desktop PC and my NAS using resilio sync. If I put them out on the phone, they'd be gone on the other devices.
As nemo
using a terminal do
gsettings list-recursively | grep -i org.freedesktop.Tracker | sort | uniq
Find the line org.freedesktop.Tracker.Miner.Files ignored-directories-with-content
. It will tell you, which files are ignored by tracker. Mine reads like this:
gsettings set org.freedesktop.Tracker.Miner.Files ignored-files "['*~', '*.o', '*.la', '*.lo', '*.loT', '*.in', '*.csproj', '*.m4', '*.rej', '*.gmo', '*.orig', '*.pc', '*.omf' , '*.aux', '*.tmp', '*.po', '*.vmdk', '*.vm*', '*.nvram', '*.part', '*.rcore', ' *.lzo', 'autom4te', 'conftest', 'confstat', 'Makefile', 'SCCS', 'ltmain.sh', 'li btool', 'config.status', 'confdefs.h', 'configure', '#*#', '~$*.doc?', '~$*.dot? ', '~$*.xls?', '~$*.xlt?', '~$*.xlam', '~$*.ppt?', '~$*.pot?', '~$*.ppam', '~$*. ppsm', '~$*.ppsx', '~$*.vsd?', '~$*.vss?', '~$*.vst?', '*.desktop', '*.directory']"
I will add AlbumArt*.*
, Folder.*
and cover.*
to be ignored from now on. I use placeholders for the filetypes, as Folder.* to match Folder.jpg, Folder.png - I guess I will never use media files like this that should be found by tracker. You may want to use Folder.jpg and so on to be more precise then I am.
PS: as far as I know, you can't add a single value to the string of to be i´gnored files. You have to give the command the full value, i.e. the old part supplemented by the new one.
This is done by gsettings set as follows:
gsettings set org.freedesktop.Tracker.Miner.Files ignored-files "['*~', '*.o', '*.la', '*.lo', '*.loT', '*.in', '*.csproj', '*.m4', '*.rej', '*.gmo', '*.orig', '*.pc', '*.omf' , '*.aux', '*.tmp', '*.po', '*.vmdk', '*.vm*', '*.nvram', '*.part', '*.rcore', ' *.lzo', 'autom4te', 'conftest', 'confstat', 'Makefile', 'SCCS', 'ltmain.sh', 'li btool', 'config.status', 'confdefs.h', 'configure', '#*#', '~$*.doc?', '~$*.dot? ', '~$*.xls?', '~$*.xlt?', '~$*.xlam', '~$*.ppt?', '~$*.pot?', '~$*.ppam', '~$*. ppsm', '~$*.ppsx', '~$*.vsd?', '~$*.vss?', '~$*.vst?', '*.desktop', '*.directory', 'Folder.*', 'cover.*', 'AlbumArt*.*']"
Use Sailfish Utilities to reset trackers database.
just create
coderus ( 2018-06-28 15:33:37 +0200 )edit.nomedia
inside album art dirI don't want to contaminate my nas and all the other places I sync my music that don't know anything about .nomedia
A whitelist based tracker folders would be even better.
Nrde ( 2018-06-28 16:33:12 +0200 )edit^what coderus said ^
No need to go the long way round, unless you like the scenic route ;)
Spam Hunter ( 2018-06-28 16:56:03 +0200 )editI love this, though I'd worry about possible clashing with other types of documents for Folder and even cover. Not so much AlbumArt though. What do you think about:
Andy Branson ( 2018-06-29 13:41:08 +0200 )editWould do the job in a more precise way.
Moo-Crumpus ( 2018-07-02 11:04:37 +0200 )edit