aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Scanner.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-28 18:06:01 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-28 18:06:01 +0000
commit77923ed4e1caecf4cef7d46bd6979ef700fed7e2 (patch)
tree182839c9771ad8ceb40839c283c561156b735b05 /lib/python/Components/Scanner.py
parent65f5384bb4f7763e5176c871024f197b2c053eee (diff)
downloadenigma2-77923ed4e1caecf4cef7d46bd6979ef700fed7e2.tar.gz
enigma2-77923ed4e1caecf4cef7d46bd6979ef700fed7e2.zip
change internal handling of media format types and don't scan cd before opening context menu
Diffstat (limited to 'lib/python/Components/Scanner.py')
-rw-r--r--lib/python/Components/Scanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py
index d944c4c7..766d1966 100644
--- a/lib/python/Components/Scanner.py
+++ b/lib/python/Components/Scanner.py
@@ -132,9 +132,9 @@ def scanDevice(mountpoint):
# convert to list
paths_to_scan = list(paths_to_scan)
-
+
from Components.Harddisk import harddiskmanager
- blockdev = mountpoint.rsplit('/',1)[-1]
+ blockdev = mountpoint.rstrip("/").rsplit('/',1)[-1]
error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev)
# now scan the paths