We have moved to a new Sailfish OS Forum. Please start new discussions there.
14

Tired of album art filling your photo gallery? [released]

Tracked by Jolla (In release)

asked 2018-06-28 14:55:26 +0200

Moo-Crumpus gravatar image

updated 2018-09-12 23:44:40 +0200

ApB gravatar image

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.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by rozgwi
close date 2018-11-14 23:45:50.408385

Comments

12

just create .nomedia inside album art dir

coderus ( 2018-06-28 15:33:37 +0200 )edit
7

I 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
1

^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 )edit
2

I 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:

'Folder.jp*', 'Folder.png', 'Folder.gif', 'cover.jp*', 'cover.png', 'cover.gif', 'AlbumArt*.*'
Andy Branson ( 2018-06-29 13:41:08 +0200 )edit

Would do the job in a more precise way.

Moo-Crumpus ( 2018-07-02 11:04:37 +0200 )edit

5 Answers

Sort by » oldest newest most voted
8

answered 2018-07-02 12:18:38 +0200

jovirkku gravatar image

There will be a fix for this issue in the upcoming 2.2.1 release.

edit flag offensive delete publish link more

Comments

2

^ lolz ^

+1

Spam Hunter ( 2018-07-02 12:48:03 +0200 )edit

@Edz - again, another unnecessary comment here from you. Just use upvote. Are you points-searching or what?

jimjamz ( 2018-09-09 02:26:51 +0200 )edit
6

answered 2018-06-28 19:15:37 +0200

Moo-Crumpus gravatar image

updated 2018-06-28 19:18:12 +0200

Know what? The weakness of your .nomedia solution is the assumption that there is ONE directory for Album Art. But this is not usual. Usually the providers I know simply place cover images together with the music files in the same folder.

Therefore, your solution is weak, and this is why I suppose your .nomedia solution is a weak one: it is limited, conditional. Using gsettings and enhance trackers config is a general, unconditionally working one.

Therefore, afaik, gsettings is the way to go ONCE in the life of your phone.

edit flag offensive delete publish link more

Comments

2

There used to be a patch to do these settings from settings ui.

naytsyrhc ( 2018-06-28 22:27:15 +0200 )edit

Patch from virgi, I don't know if it works/is maintained or not, as always, try/use at your own peril;

https://openrepos.net/content/virgi/patch-tracker-path-settings

Spam Hunter ( 2018-06-29 11:18:55 +0200 )edit
5

answered 2018-09-05 12:59:40 +0200

Moo-Crumpus gravatar image

Jolla mentions this thread as solved Issue by update 2.2.1 Nurmonjoki. See https://together.jolla.com/question/187284/release-notes-221-nurmonjoki/

edit flag offensive delete publish link more

Comments

And it works (once I reset my tracker DB), after 4 years finally no more album art in my gallery. \o/

null ( 2018-09-05 14:19:05 +0200 )edit
4

answered 2018-06-29 11:10:32 +0200

ApB gravatar image

@jiit

Can we have that in one of the next releases. Seems easy and is something we've been asking for a long time.

edit flag offensive delete publish link more

Comments

2

looks like this was recently patched into tracker: https://git.merproject.org/mer-core/tracker/commit/198ea02c8843a1b244fac6d35805da41012b7dae

r0kk3rz ( 2018-07-02 11:31:57 +0200 )edit

Actually I'd like to have album art in the gallery but in a separate folder. I find it occasionally useful. Though folders are currently present only in android's gallery...

butler ( 2018-07-06 12:27:12 +0200 )edit
2

answered 2018-09-12 22:34:18 +0200

ApB gravatar image

I rebooted and restarted the tracker. This doesn't work for me on J1.

I still see all the album art in the gallery. All the music is in the SD card in case it matters.

What gives?

edit flag offensive delete publish link more

Comments

You need to reset the tracker database first. See comment above by 'null'.

addydon ( 2018-09-13 10:04:37 +0200 )edit

@addydon i used the option in the utilities. No idea what to do other than that.

ApB ( 2018-09-13 11:11:18 +0200 )edit

Question tools

Follow
8 followers

Stats

Asked: 2018-06-28 14:55:26 +0200

Seen: 1,554 times

Last updated: Sep 12 '18