diff options
| author | acid-burn <acidburn@opendreambox.org> | 2009-02-13 10:51:23 +0100 |
|---|---|---|
| committer | acid-burn <acidburn@opendreambox.org> | 2009-02-13 10:51:23 +0100 |
| commit | 8530482b1d58468eade8ae2cfd618c694bef75d2 (patch) | |
| tree | 4b631ab96ed8e54fede3066016df0ab15291e089 /lib | |
| parent | cd3cd96e2ff4c6e6a9a38393e4d93167d30f74ea (diff) | |
| download | enigma2-8530482b1d58468eade8ae2cfd618c694bef75d2.tar.gz enigma2-8530482b1d58468eade8ae2cfd618c694bef75d2.zip | |
really only show accessible devices
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/python/Plugins/Extensions/MediaScanner/plugin.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |
