[Q] Prevent Media Scanner scanning certain dirs? How to? - Galaxy Note GT-N7000 Q&A, Help & Troubleshooting

Hi everybody!
Does anyone know how to prevent Media Scanner from scanning certain directorys or certain media types within a tree?
The reason is because I have the album art in every single album folder and after scanning by the Medie Scanner the all show up in the picture gallery and this looks really messed up.
Any idea or app for this?
Thx
DEC
Edit (2011/12/16-09.08pm): Clarification: I want the Media Scanner to scan the audio files but NOT the corresponding album art file.

Put a dot infront of dir name. This will hide the directory too. To view it just choose view hidden files in your explorer.
Sent from my GT-N7000 using xda premium

Also, putting a ".nomedia" file in a folder prevents it (and subfolders) from being scanned.
Can't help with only scanning certain types though...

Related

What keeps Android apps from looking into specific folders ? ((music/pics/vids))

There's been ongoing discussions for a long time about the best way to "hide" certain media to keep them from showing up in media players.
Every 3rd party App Ive dled for Music/Movies/Pictures has had the same issue of scanning all the media in the SD card.
Is this some inherent mandate in Android ? Or lazy dev programming ?
I have podcast apps that only pick up podcasts. NYC subway map app that only picks up its MAP images...
Yes open up any media player and I see all of these included with my media.
Obviously the function is in there
add a file called .nomedia and Android will not index that directory
The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.
xManMythLegend said:
The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.
Click to expand...
Click to collapse
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.
just rename the folder with a "." in front of the folder name, this makes it a hidden folder and the gallery and what not wont search it.
rastacre said:
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.
Click to expand...
Click to collapse
THANK YOU !!
I somewhat figured this out when I saw this option in Doggcatcher.
This answers my question.
making a folder invisible doesn't help me.
I have ringtones in one folder and when I playback music, I don't want to hear ringtones.
hmmm is there anyway you can adb push the ringtones to the ringtone folder on the system? So you wouldn't need to have it in your sd card?
download MixZing music player. It will let you select which folder on the memory card to scan for music. Select music folder and your done. No more ringtones playback
This .nomedia trick dosnt work 100 percent. I placed it in my music folder and yes it makes the album covers disappear in the gallery but it also makes the music disappear from the music player. I can no longer scroll through artists, songs, etc from within the music player...
I am not running a rooted phone just the stock firmware with the latest Android update.
Hooligan
*Hooligan* said:
This .nomedia trick dosnt work 100 percent. I placed it in my music folder and yes it makes the album covers disappear in the gallery but it also makes the music disappear from the music player. I can no longer scroll through artists, songs, etc from within the music player...
I am not running a rooted phone just the stock firmware with the latest Android update.
Hooligan
Click to expand...
Click to collapse
^bump^
I have the same issue - I don't want to see album covers in the gallery, but I do want the music to show up in my music app - any ideas?
Thanks
.nomedia works 100% and does exactly what it says - NO MEDIA. That includes NO VIDEO, NO AUDIO, NO PHOTOS, NO WHATEVER. All system apps looking for media ignore the folder and all its subfolders.
If the album art is in a subfolder inside the album folder - put .nomedia inside that subfolder. If it's outside with the .MP3s - then .nomedia won't help you.
If you're having issues with album art, you could always embed the album art into the mp3/m4a with an app like dbpoweramp.
One more possible solution:
http://www.google.com/support/forum/p/android/thread?tid=4c95682562b36eca&hl=en
xManMythLegend said:
The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.
Click to expand...
Click to collapse
rastacre said:
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.
Click to expand...
Click to collapse
xManMythLegend said:
THANK YOU !!
I somewhat figured this out when I saw this option in Doggcatcher.
This answers my question.
Click to expand...
Click to collapse
.... what? You argued with the first post, next post said the same thing, then you're thanking them??
r4zv4n said:
^bump^
I have the same issue - I don't want to see album covers in the gallery, but I do want the music to show up in my music app - any ideas?
Thanks
Click to expand...
Click to collapse
Yes, name the files right. AlbumArt.jpg
BTW, after putting the .nomedia, you will need to REBOOT the device for it to take effect and system media scanner will rescan after first start up.
I'm having trouble believing this is "by design" and adding .nomedia to EVERY FOLDER other than my music folder makes absolutely no damn sense... the other way around would make much more sense instead! ".media"
This issue has also been breaking my balls... I don't want my damn ringtones in my media library...
Kraion said:
I'm having trouble believing this is "by design" and adding .nomedia to EVERY FOLDER other than my music folder makes absolutely no damn sense... the other way around would make much more sense instead! ".media"
This issue has also been breaking my balls... I don't want my damn ringtones in my media library...
Click to expand...
Click to collapse
Your ringtones should go into the following folder
/sdcard/media/audio/ringtones
And your notifications should go into the following folder
/sdcard/media/audio/notifications
Those folders are not scanned into your music library. There is no need for .nomedia files on those two folders, otherwise they will not show up in your notifications/ringtones list.
NOTE: /sdcard means your sdcard.... so on the root of your sdcard you should put a folder named media, then inside media folder you should put another folder called audio, and then the ringtones or notifications folder inside audio folder..... This should solve your issue.
zeus_chingon said:
Your ringtones should go into the following folder
/sdcard/media/audio/ringtones
And your notifications should go into the following folder
/sdcard/media/audio/notifications
Those folders are not scanned into your music library. There is no need for .nomedia files on those two folders, otherwise they will not show up in your notifications/ringtones list.
NOTE: /sdcard means your sdcard.... so on the root of your sdcard you should put a folder named media, then inside media folder you should put another folder called audio, and then the ringtones or notifications folder inside audio folder..... This should solve your issue.
Click to expand...
Click to collapse
This works....Did this over a year ago when i first bought my N1...

Excluding pictures/images from gallery

Hi all,
I was going through my gallery this evening, and im finding it really annoying that ALL my album art is in there
Anybody any ideas if its possible to hide/remove images from the gallery? Or will I simply have to remove my album art(not that I really care about it!)?
create an empty file call .nomedia in ur album art folder and run the media scanner/dis-mount-remount ur sd/restart the phone. All folder with the .nomedia file will be ignored (image, music & video).
I am having the issue with album art showing up in the gallery but am hesitant to use .nomedia.
Will my music still be found if the album art is in the same folder as the music?
Will the album art be found for the music apps if there is .nomedia in the folder?
It seems we should be able to just specify where the gallery should look for pictures instead of scanning the entire SD.
The music app still functions fine. I have all of my album art embedded in my mp3s but when I had them as separate files they still showed up in the music app even though I had the .nomedia file.
You can easily delete that file and reboot if you want to go back.

gallery showing unwanted content

does the gallery ALWAYS scan the whole SD card? i hate having pictures belonging to apps displayed in the gallery like asphalt game displays ALL images/videos and in Music app adds sounds. this is really annoying and wish it didnt scan all the sd card for music. are there specific folders that should be placed on the sd card or something? ie. sd:\Media\Videos OR sd:\Videos
Yeah it shows everything in folders that do not have a ".nomedia" file.
see http://androinica.com/2009/08/28/ho...iles-from-appearing-in-android-media-players/
Its not its fault though, the MediaScanner service is what it pulls data from (ContentProvider)
A settings option to disable this or look in just a couple of foldlers would be great.
Adding a .nomedia in a folder with mp3s with the intention of not getting the album art in gallery will have the side-effect of the mp3s not showing up in the music player
I've no problem getting unwanted sounds in the built in Music app by doing this:
(this was mentioned inside the T-Mobile G1 manual)
Put your alarms/notifications/ringtones in the following folders:
\alarms
\notifications
\ringtones
Those sounds will appear in the appropriate list when you choose to adjust those certain sounds, they also don't show up in the Music app. They do show up in 3rd party music app like DoubleTwist Music Player.
Code:
touch /sdcard/folderwithpics/.nomedia
takes literally 10 seconds to fix.
GldRush98 said:
Code:
touch /sdcard/folderwithpics/.nomedia
takes literally 10 seconds to fix.
Click to expand...
Click to collapse
worked great thanks!
.nomedia media works nicely
britoso said:
Yeah it shows everything in folders that do not have a ".nomedia" file.
see http://androinica.com/2009/08/28/ho...iles-from-appearing-in-android-media-players/
Its not its fault though, the MediaScanner service is what it pulls data from (ContentProvider)
A settings option to disable this or look in just a couple of foldlers would be great.
Adding a .nomedia in a folder with mp3s with the intention of not getting the album art in gallery will have the side-effect of the mp3s not showing up in the music player
Click to expand...
Click to collapse
The method posted at Androinica.com using the text file rename method worked nicely for me.
I did however have to search out where all these files were in order to place the .nomedia files properly.

Album Art file

Does anyone know the specific directory and name of the file used for storing album art? It gets a little tedious having to re-run Album Art Grabber after flashing CM6 every couple days, so I would like to start just backing up one and copying it back over after a flash.
The album art is cached in /sdcard/.Android/Data/com.android.providers.media/albumthumbs. But the files in there are not very useful when flashing because they are just named with the unix time of the time the cover was created from the media scanner. They will be deleted again by the media scanner when it re-scans after flashing. Alternatively, you can store the file AlbumArt.jpg in each albums folder and it will persist across flashes.
Try Cover Art Downloader from the market or appbrain. It has the option to save the AlbumArt.jpg files in the proper location so they can be picked up again after flashing.
stewby said:
The album art is cached in /sdcard/.Android/Data/com.android.providers.media/albumthumbs. But the files in there are not very useful when flashing because they are just named with the unix time of the time the cover was created from the media scanner. They will be deleted again by the media scanner when it re-scans after flashing. Alternatively, you can store the file AlbumArt.jpg in each albums folder and it will persist across flashes.
Try Cover Art Downloader from the market or appbrain. It has the option to save the AlbumArt.jpg files in the proper location so they can be picked up again after flashing.
Click to expand...
Click to collapse
I gave up on the cover files in the music folders because they were really cluttering up the Gallery app. Regardless, thanks for your help, and I suppose I shouldn't really complain when it only takes about 5 minutes to restore all the art.

stop Album app showing album covers?

Is there any way to stop the Album app from showing every cover in my music folder?
Info
pipspeak said:
Is there any way to stop the Album app from showing every cover in my music folder?
Click to expand...
Click to collapse
it depends on music files
i don't have such issue!
album app will scan all sd-card for images and video
you can see some of them as sort in folders and etc but no way to limit its scanning process...
:good:
I just deleted all album artworks. I use Shuttle and it downloads arts automatically and hides them in secret folder no album app can find.
Create .nomedia file in those music folders?

Categories

Resources