really only show accessible devices
[enigma2.git] / lib / python / Plugins / Extensions / MediaScanner / plugin.py
index 2c31197dea5783449a8d816a77273e5bc811d93e..b43662efa305538e6f138fdd992f920780237163 100755 (executable)
@@ -45,6 +45,9 @@ def scan(session):
                for x in parts:
                        if not access(x[1], F_OK|R_OK):
                                parts.remove(x) 
+               for x in parts: # first run sometimes skips an entry
+                       if not access(x[1], F_OK|R_OK):
+                               parts.remove(x)
                session.openWithCallback(mountpoint_choosen, ChoiceBox, title = _("Please Select Medium to be Scanned"), list = parts)
 
 def main(session, **kwargs):