maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Can I restrict which folders to search for media files in? (https://talk.maemo.org/showthread.php?t=39554)

demiurgus 2010-01-07 09:51

Can I restrict which folders to search for media files in?
 
I want to tell the Media Player only to index files from certain directories and not the entrire MyDocs partition.
After installing some ScummVM games that use a lot of audio files my Media Player is completely bloated by these.
I know, all Nokia phones have always had this issue, but maybe N900 really is smarter...

What really confuses me is that $HOME/.config/tracker/tracker.cfg does list a good set of directories to watch and index, but I guess this configuration is not used, because everything under MyDocs is indexed. Can anyone confirm this (and tell me where to configure it?) or shall I report it as a bug?

codeMonkey 2010-01-07 10:40

Re: Can I restrict which folders to search for media files in?
 
From what I've read the tracker.cfg file does work.
You'll probably need to remove your tracker dbs after you've changed the file, and then reboot as per this thread.

demiurgus 2010-01-07 13:37

Re: Can I restrict which folders to search for media files in?
 
I haven't changed the tracker.cfg file in any way, but maybe I'm lost to how it is supposed to work. This is what the file looks like:

[Watches]
# List of directory roots to index and watch (separator=; )
WatchDirectoryRoots=$HOME/MyDocs/.sounds/;$HOME/MyDocs/.documents/;$HOME/MyDocs/.videos/;$HOME/MyDocs/.images/;$HOME/MyDocs/.camera/;
# List of directory roots to index but NOT watch (separator=; )
CrawlDirectory=
# List of directory roots NOT to index and NOT to watch (separator=; )
NoWatchDirectory=$HOME/MyDocs/core-dumps/;$HOME/MyDocs/cities/;$HOME/MyDocs/.sounds/Ringtones/;$HOME/MyDocs/tmp/;/media/mmc1/tmp/;/media/mmc1/cities/;

As you can see, plain $HOME/MyDocs isn't listed in WatchDirectoryRoots. Still the entire MyDocs is indexed. Maybe it is :
IndexMountedDirectories=true

that produces this effect?

codeMonkey 2010-01-07 17:17

Re: Can I restrict which folders to search for media files in?
 
I think you might be right there, since MyDocs is mounted, but if you turn that off then I'm not sure if it will index anything in MyDocs.

Maybe add $Home/MyDocs/ to the no-watch list?

demiurgus 2010-01-08 08:36

Re: Can I restrict which folders to search for media files in?
 
Quote:

Originally Posted by codeMonkey (Post 457615)
I think you might be right there, since MyDocs is mounted, but if you turn that off then I'm not sure if it will index anything in MyDocs.

Tested some more and setting IndexMountedDirectories to false neither stopped MyDocs from being indexed completely or partially. I guess this setting only has effect when mounting after trackerd has been started.

Quote:

Originally Posted by codeMonkey (Post 457615)
Maybe add $Home/MyDocs/ to the no-watch list?

Yes, this worked.

So now I have enough material to scrap together a controlling GUI :)

lardman 2010-01-08 18:14

Re: Can I restrict which folders to search for media files in?
 
Might be better to alter the behaviour of the image viewer/media player apps/etc. rather than tracker (as having access to all the file data might be useful at some point), so that app only asks for images/audio/video/etc. in certain directories.

HtheB 2010-01-08 18:20

Re: Can I restrict which folders to search for media files in?
 
There is a mod for the S60v3 fp1 (symbians with feature pack 1) that will show pictures that are in the directory of the default dirs.

music in Sounds folder
photos in Pictures
Movies in Videos


should be done with the N900 too. verry annoying to have the wallpapers in the photos.

jakiman 2010-01-16 04:07

Re: Can I restrict which folders to search for media files in?
 
Can you use wildcards in the NoWatchDirectory?

Such as: /media/mmc1/*

(Obviously hoping that it will not index anything inside mmc1 and all its sub-directories)

jerryfreak 2010-01-16 07:27

Re: Can I restrict which folders to search for media files in?
 
id love to see a gui app for this. i use my n900 for storage/transfer and torrents and a lot of that stuff is either dupes (flac/v0/v2) or flat out doesnt belong in media player

demiurgus 2010-01-16 07:31

Re: Can I restrict which folders to search for media files in?
 
You don't need any wildcards, you specify a root directory - nothing under this will be indexed unless explicitly included in WatchDirectoryRoots (and the other way around)


All times are GMT. The time now is 00:59.

vBulletin® Version 3.8.8