Ask / Submit

excluding directories from media tracker [duplicate]

asked 2018-03-28 19:13:18 +0300

jabgoe gravatar image

updated 2018-03-28 20:17:44 +0300

Hi everybody!

i would like to exclude certain directories from the media tracker. i'm having lots of music files on sd card and to save space on the device i also store my podcast files there.

the media tracker searches for all sound files and thus includes the podcast files too so that these podcast files clog the display of the media tracker. obviously the producers of these podcast don't care much about tags in their soundfiles.

i would like to exclude the directory with the podcast from the tracker or limit the tracker to the music directory. i dimly remember that way back there was a config file for the tracker but i might be wrong with that.

i wonder if anybody could help me with that problem

edit retag flag offensive reopen delete

The question has been closed for the following reason "duplicate question" by magullo
close date 2018-03-28 20:17:32.611242

2 Answers

Sort by » oldest newest most voted

answered 2018-03-28 19:24:19 +0300

olf gravatar image

The Tracker should ignore all directories containing a file .nomedia (its content is irrelevant, hence an empty file created with touch .nomedia is sufficient) and all "hidden" files and directories (i.e. ones starting with a ".").

BTW, I haven't tested this for a long time, e.g. if a .nomedia file in a directory also covers all its subdirectories (I would assume so).

edit flag offensive delete publish link more


thanks for this info.

unluckily it did't work. it should have worked though. but i couldn't start the reinidexing because the sailfish utility for the tracker crashed every time (_error_!) and trying to force the reindexing by deleting the /home/nemo/.cache/tracker/* files and rebooting lead to timeouts of the tracker-processes and an enormous amount of errors in journalctl like this

Mar 29 15:27:31 Sailfish tracker-store[2631]: GLIB WARNING ** Tracker - Journal replay error: 'Unable to insert multiple values for subject (null)' and single valued propertydc:publisher' (old_value: '119846', new value: '119846')

looks to me like the media player is broken.

jabgoe ( 2018-03-29 16:45:42 +0300 )edit

Well, it does work (under SailfishOS 2.1.4 on a Jolla 1 phone).
But as the Tracker seems to be somewhat "flaky", I just leave it alone.

olf ( 2018-03-30 02:39:56 +0300 )edit

answered 2018-03-28 20:16:57 +0300

Already asked:

edit flag offensive delete publish link more


might have been correct 4 years ago these answers you mentioned. with sailfish 2.1.4 and the actual version of media and tracker and such, this is incorrect. this old soultion doesn't work anymore.

hey, but good you closed this. one problem less .

jabgoe ( 2018-03-29 16:48:06 +0300 )edit

I didn't close the issue. I just marked it as duplicate. Feel free to remove it, but I'd prefer to have one common place, digging through different post for the same takes more time.

magullo ( 2018-03-29 16:51:06 +0300 )edit

@magullo, "Marking as a duplicate" is a choice offered when selecting "Close" and hence implies closing a question (as you can see above).

olf ( 2018-03-30 02:34:31 +0300 )edit

@olf thanks I didn't notice

magullo ( 2018-03-30 12:49:58 +0300 )edit

Question tools

1 follower


Asked: 2018-03-28 19:13:18 +0300

Seen: 88 times

Last updated: Mar 28