From: acid-burn Date: Fri, 13 Feb 2009 09:51:23 +0000 (+0100) Subject: really only show accessible devices X-Git-Tag: 2.6.0~433^2~4 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8530482b1d58468eade8ae2cfd618c694bef75d2 really only show accessible devices --- diff --git a/lib/python/Plugins/Extensions/MediaScanner/plugin.py b/lib/python/Plugins/Extensions/MediaScanner/plugin.py index 2c31197d..b43662ef 100755 --- a/lib/python/Plugins/Extensions/MediaScanner/plugin.py +++ b/lib/python/Plugins/Extensions/MediaScanner/plugin.py @@ -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):