![]() |
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. |
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=;) |
Re: Telling Media Player to ignore certain directories
Thanks, where should the tracker.cfg file appear as I don't appear to have one?
|
Re: Telling Media Player to ignore certain directories
Where this file is located?
|
Re: Telling Media Player to ignore certain directories
/home/user/.config/tracker/tracker.cfg
|
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?
|
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
should do what you want (haven't tested it though.) |
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
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. |
Re: Telling Media Player to ignore certain directories
Is it possible not to exclude some folders, but to specify which folders to track?
That would be easier. |
Re: Telling Media Player to ignore certain directories
I'm stuck now, and have been bashing my keyboard for a while. I know this will be a simple error as well so I apologise in advance.
The folder I want to ignore is called 'Res' and it appears in the home directory (along with 'Drive', 'Mac OS', 'Music' etc. just so you know exactly where I am). In the same directory I created another folder called .config and within this directory I put in another, tracker. Then I edited a file to read NoWatchDirectory=$HOME/Res/; and called it tracker.cfg. Even though media player has done a rescan the files in the 'Res' directory still appear. Where have I fouled up? Thanks. |
Re: Telling Media Player to ignore certain directories
Quote:
(srsly, search is your friend...) Quote:
|
Re: Telling Media Player to ignore certain directories
The MyDocs partition is considered a removable device and is controlled by another setting that tells the tracker to index it by default, so if you want it to only index explicitly given directories you need to add $HOME/MyDocs to No Watch Directories.
You can also try tracker-cfg (I wrote it) from extras-devel that gives you a GUI to modify these settings. |
Re: Telling Media Player to ignore certain directories
I think I have hit a problem in that case, I am on Ubuntu and cannot see the /home/user/ file and I cannot browse to it. In mass storage mode the only directory I can see and browse is the main folder containing music, DCIM and so on. Any ideas how I can get to the other directories within Ubuntu?
|
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
hello i have also a unknown album in my playlist, it's from sygic navigation, the sound files are in /home/user/MyDocs/Res/. (sounds and voices) I have edit the tracker.cfg file, but no result.
What exactly i have to put in the .cfg file and where??? |
Re: Telling Media Player to ignore certain directories
Brilliant, thanks a lot all worked for me.
|
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
EDIT: Got it!! Did a reindex with xterminal. |
Re: Telling Media Player to ignore certain directories
Did you rebuild the tracker database? If not the unwanted entries will still be there.
|
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Cannot get it working if I add other folder then MyDocs like:
/home/user/applications/ or other Tried GUI and editing file, rebuilding DB's, still no luck. Any suggestions? |
Re: Telling Media Player to ignore certain directories
Quote:
~ $ tracker-processes -r ~ $ /usr/lib/tracker/trackerd -r |
Re: Telling Media Player to ignore certain directories
Quote:
As a selection, I've got files like: cover.jpg folder.jpg <name of album>.jpg AlbumArt_{12345679324789234293}.jpg AlbumArtSmall.jpg Cov.jpg etc... etc... And that doesn't include derivatives with different capitalization etc :( If only there was an option to index given file types in given directories -OR- someone write a nice/better photo viewer app :) |
Re: Telling Media Player to ignore certain directories
Quote:
maybe something like Code:
NoIndexFileTypes=/home/user/MyDocs/Music/*jpg;/home/user/MyDocs/Music/*png that would nicely solve your problem. |
Re: Telling Media Player to ignore certain directories
Quote:
I'd assumed that this was only for fike types (ie jpg, png, etc) - didn't realise you could but a full path in there Doh! I'm sure this topic has been discussed more than several times here but I'd never seen this solution before... Thanks again :) |
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
This doesn't appear to work. I've been fiddling with many different combinations including: NoIndexFileTypes=/home/user/MyDocs/Music/*jpg; NoIndexFileTypes=/home/user/MyDocs/Music/*.jpg; But it's still showing jpg's from my Music directory in the photo viewer :( Maybe my outpouring of love was a little premature?! |
Re: Telling Media Player to ignore certain directories
Quote:
for some programs, the filename to which pattern matching is applied contains the whole path, for some it doesn't. apparently tracker belongs in the latter group. |
Re: Telling Media Player to ignore certain directories
You can try this (this is assuming that /home/user/MyDocs/Music/ only contains sub-directories that actually hold your music and album art:
Code:
NoIndexFileTypes=/home/user/MyDocs/Music/*/*.jpg; Code:
NoIndexFileTypes=/home/user/MyDocs/Music/*.jpg; Code:
NoIndexFileTypes=/home/user/MyDocs/Music/*/*.jpg;/home/user/MyDocs/Music/*/*/*.jpg; |
Re: Telling Media Player to ignore certain directories
When making changes to tracker cfg you have to remember that some changes happen only after when you rebuild database. So restarting tracker doesnīt remove pics/videos from database if you have chosen to ignore some directory.
|
Re: Telling Media Player to ignore certain directories
Quote:
Code:
$ tracker-processes -r |
Re: Telling Media Player to ignore certain directories
Quote:
Code:
user@Nokia-N900-42-11:~$ tracker-processes --help and btw. Tracker manages the index of email also dunno about sms&im messages, contacts etc. so please be aware that it will rebuild ALL indexes. Not only audio & video. |
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
copy files to desktop pc delete files from n900 change tracker configuration copy them back to n900 |
Re: Telling Media Player to ignore certain directories
Quote:
|
Re: Telling Media Player to ignore certain directories
Quote:
Code:
NoIndexFileTypes = /media/mmc1/music/*/*/*.jpg;/media/mmc1/music/*/*/*/*.jpg;*.mp4 And doing lots of googling, I think I can only come to this conclusion: NoIndexFileTypes does not work |
Re: Telling Media Player to ignore certain directories
I did the music correctly, but I want to do the same with pictures. When I go to the gallery, I don't want to see all the album art...
Any help? |
All times are GMT. The time now is 19:19. |
vBulletin® Version 3.8.8