maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Telling Media Player to ignore certain directories (https://talk.maemo.org/showthread.php?t=64983)

LaptopU 2010-11-03 12:08

Telling Media Player to ignore certain directories
 
I am sure this has been covered already but for the life of me I cannot find a thread on it.

I installed Sygic Maps recently and now there are 31 tracks by 'unknown' artist in my media player with the tag 'test'. These all stem from the Sygic installation. How can I tell Media Player to ignore the Sygic directories when it scans for media?

Also, this is a slightly different question, there is nothing in the repos for controlling media by the headset controls. Is there anything for Maemo yet that can reliably do this?

Cheers all.

James_Littler 2010-11-03 12:11

Re: Telling Media Player to ignore certain directories
 
edit the tracker.cfg file and add your excludes

e.g.
Code:

# 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/;/home/user/MyDocs/cities/diskcache/e/1/;/home/user/MyDocs/cities/diskcache/5/8/;/media/mmc1/tmp/;/media/mmc1/cities/;/home/opt;/media/mmc1/games/;/media/mmc1/Temp/;/home/user/;$HOME/MyDocs/;/home/user/MyDocs/irreco/modern/buttons/blank/;/home/user/MyDocs/irreco/modern/buttons/down/;/home/user/MyDocs/irreco/modern/buttons/left/;/home/user/MyDocs/irreco/modern/buttons/menu/;/home/user/MyDocs/irreco/modern/buttons/next/;/home/user/MyDocs/irreco/modern/buttons/num_0/;/home/user/MyDocs/irreco/modern/buttons/num_1/;/home/user/MyDocs/irreco/modern/buttons/num_2/;/home/user/MyDocs/irreco/modern/buttons/num_3/;/home/user/MyDocs/irreco/modern/buttons/num_4/;/home/user/MyDocs/irreco/modern/buttons/num_5/;/home/user/MyDocs/irreco/modern/buttons/num_6/;/home/user/MyDocs/irreco/modern/buttons/num_7/;/home/user/MyDocs/irreco/modern/buttons/num_8/;/home/user/MyDocs/irreco/modern/buttons/num_9/;/home/user/MyDocs/irreco/modern/buttons/ok/;/home/user/MyDocs/irreco/modern/buttons/pause/;/home/user/MyDocs/irreco/modern/buttons/play/;/home/user/MyDocs/irreco/modern/buttons/playpause/;/home/user/MyDocs/irreco/modern/buttons/power/;/home/user/MyDocs/irreco/modern/buttons/prev/;/home/user/MyDocs/irreco/modern/buttons/right/;/home/user/MyDocs/irreco/modern/buttons/up/;


LaptopU 2010-11-03 12:22

Re: Telling Media Player to ignore certain directories
 
Thanks, where should the tracker.cfg file appear as I don't appear to have one?

lasas 2010-11-03 12:23

Re: Telling Media Player to ignore certain directories
 
Where this file is located?

James_Littler 2010-11-03 12:31

Re: Telling Media Player to ignore certain directories
 
/home/user/.config/tracker/tracker.cfg

jer006 2010-11-03 12:36

Re: Telling Media Player to ignore certain directories
 
is it possible to exclude images (ie album art) from the photos app using tracker.cfg and if so how?

jedi 2010-11-03 12:38

Re: Telling Media Player to ignore certain directories
 
Quote:

Originally Posted by jer006 (Post 862059)
is it possible to exclude images (ie album art) from the photos app using tracker.cfg and if so how?

Stupidly, no it's not possible. The same tracker is used for the media player and the photo viewer so any image it finds in your music folder will be shown in the photo viewer.

SubCore 2010-11-03 12:47

Re: Telling Media Player to ignore certain directories
 
Quote:

Originally Posted by jer006 (Post 862059)
is it possible to exclude images (ie album art) from the photos app using tracker.cfg and if so how?

NoIndexFileTypes=FILEGLOB[;MORE;FILEGLOBS...]

should do what you want (haven't tested it though.)

jedi 2010-11-03 12:49

Re: Telling Media Player to ignore certain directories
 
Quote:

Originally Posted by SubCore (Post 862072)
NoIndexFileTypes=FILEGLOB[;MORE;FILEGLOBS...]

should do what you want (haven't tested it though.)

Sounds like it's a setting to ignore filetypes. But (as far as I'm aware) you can't tell it to *only* index audio files in your Music directory and *only* pics in your photos dir.

SubCore 2010-11-03 12:56

Re: Telling Media Player to ignore certain directories
 
Quote:

Originally Posted by jedi (Post 862076)
Sounds like it's a setting to ignore filetypes.

not just filetypes - you can put any pattern there, and files matching that pattern won't be indexed.
album art usually has "AlbumArt" or something similar in it's name, so it should be possible to set a pattern that will match all those files, but leave all other image files as indexed.


All times are GMT. The time now is 14:19.

vBulletin® Version 3.8.8