webOS Nation Forums >  Homebrew >  webOS Patches > [Patch] Media Indexer No-Index Locations
[Patch] Media Indexer No-Index Locations
  Reply
Like Tree4Likes
  • 4 Post By GMMan

 
Thread Tools Display Modes
Old 12/19/2012, 06:47 AM   #1 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default [Patch] Media Indexer No-Index Locations

This patch will allow you to set custom locations to exclude Media Indexer from searching. Once applied, any new files that match the paths you specify will not be added to the index.

This patch has been submitted to Preware and should show up soon.

To set up the patch, install it first. Then in your USB drive create a file called ".nomedialist". Inside it provide a JSON string array that contains the paths you'd like to exclude:
Code:
[
    "/media/internal/appdata",
    "/media/internal/downloads/random",
    ".wav"
]
If you add any new files that contain the paths you've listed, they will not show up in your various media apps and QuickOffice. Do not make your pattern too generalized, or else you may have little or none of your new files indexed.

If you'd like to clear out the files you do not want shown in your apps, do the following.
  1. Install Impostah from Preware.
  2. Open Impostah, and select Databases.
  3. Under Database Kind, pick a kind that begins with "media".
  4. Tap Query.
  5. From the app menu, select Delete All Items, and confirm.
  6. Repeat for each item database kind that starts with "media".
  7. Open a terminal to your device.
  8. Type the following:
    Code:
    luna-send -n 1 palm://com.palm.filenotifyd/reset {}
The indexer will rescan all your (non hidden) files, and add them according to the rules. Your user-created playlists will not be deleted (they're in a different database kind).

Developer's note: This patch was a PITA to make. It took me an entire night to figure it out. I blame Palm for not testing their non-minified code on a production environment. It ended up that the source code never worked and I had to go into the minified version and add code there. I don't understand it.

If you're going to ask me "why not do it Android style?", I'll answer you with "they work on different principles". It'll be hard for me to check for the presence of those files and it'll be extremely inefficient.
Attached Files
File Type: patch filenotifyd-nomedia.patch (6.1 KB, 14 views) Email Attachment
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.

Last edited by GMMan; 12/19/2012 at 07:22 PM. Reason: Possibly invalid patch updated
GMMan is offline   Reply With Quote
Liked by sanaking, geekpeter, MikeN68 and 1 others like this.
Old 12/19/2012, 07:22 AM   #2 (permalink)
Member
 
geekpeter's Avatar
 
Posts: 3,020
Default

legend, do hate some homebrew apps where you can't change their extra data to use a hidden folder and their gfx/sounds get indexed by mistake

would maybe stop android/webos users from indexing their android apps gfx as well.
__________________
Touchpad Keyboard Themes - >> Click Me <<
geekpeter is offline   Reply With Quote
Old 12/31/2012, 08:51 PM   #3 (permalink)
Member
 
Posts: 21
Default

Hmmm. I tried the Impostah instructions to re-index. Had the effect of doing a full erase. I ended up doctoring!
nzpling is offline   Reply With Quote
Old 12/31/2012, 10:42 PM   #4 (permalink)
Homebrew Developer

 
Posts: 2,745
Default

yup, that sure would be awesome to have it ignore the android directory. or patch android to use a ".android" dir so it's hidden to begin with.. sigh.
__________________
Author:
Remove Messaging Beeps patch for webOS 3.0.5, Left/Right bezel gestures in LunaCE,
Whazaa! Messenger and node-wa, SynerGV 1 and 2 - Google Voice integration, XO - Subsonic Commander media streamer, AB:S Launcher
Quote:
(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
GO OPEN WEBOS!
People asked me for a donate link for my non-catalog work, so here you are:
eblade is offline   Reply With Quote
Old 01/07/2013, 07:17 PM   #5 (permalink)
Member
 
Posts: 172
Default

how you provide a JSON string array?
Firepower is offline   Reply With Quote
Old 01/07/2013, 07:25 PM   #6 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Check the OP for a sample, and try working off of that. Every path is surrounded by quotes, and ends with a comma after the quote, unless it's the last item in the list. The entire list is surrounded by a matching pair of square brackets.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Old 01/07/2013, 07:32 PM   #7 (permalink)
Member
 
Posts: 172
Default

Quote:
Originally Posted by GMMan View Post
Check the OP for a sample, and try working off of that. Every path is surrounded by quotes, and ends with a comma after the quote, unless it's the last item in the list. The entire list is surrounded by a matching pair of square brackets.
I created the folder instead of filename, sorry for misunderstanding, now will redo correctly

this is brilliant removed all my android pics and thumbnails , by just adding /media/internals/Android to .nomedialist

Last edited by Firepower; 01/08/2013 at 03:20 AM.
Firepower is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0