Kodi Community Forum

Full Version: Unhide a menu when an USB stick is inserted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I want to hide/display an item from the main menu depending when an USB stick is inserted or not.

There is a boolean for DVD : System.HasMediaDVD

But not for removable device.

Is it possible ?

Thanks.
Hi.

Nobody can tell me if it's possible or not ?

Thanks.
I'm pretty sure it isn't possible. How would the system distinguish between a permanently plugged in usb hdd and newly plugged in drive? (I have two external usb hdd in my htpc). Also you are likely to only have one DVD drive, so a simple boolean is enough for DVDs.

My guess is you would have to write a python service addon that checks for usb insertion and writes a window property. But maybe someone else knows something I don't...
OK, thanks.