cosmetic fixes/workarounds
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 4 Jun 2008 10:25:10 +0000 (10:25 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 4 Jun 2008 10:25:10 +0000 (10:25 +0000)
lib/python/Plugins/Extensions/MediaScanner/plugin.py

index 4b2b937036fa09c3550fb102035d5d895e2e2518..1ee5f39206643a42114ec4721af047992faf90ff 100644 (file)
@@ -22,6 +22,8 @@ def mountpoint_choosen(option):
 
        if list == [ ]:
                print "nothing found"
+               from Screens.MessageBox import MessageBox
+               session.open(MessageBox, "No displayable files on this medium found!", MessageBox.TYPE_ERROR)
                return
 
        session.openWithCallback(execute, ChoiceBox, 
@@ -49,7 +51,7 @@ def menuHook(menuid):
 
        from Components.Harddisk import harddiskmanager
        from Tools.BoundFunction import boundFunction
-       return [(_("Show files from %s") % r.description, boundFunction(menuEntry, r.description, r.mountpoint), "hotplug", None) for r in harddiskmanager.getMountedPartitions(onlyhotplug = True)]
+       return [(("%s (files)") % r.description, boundFunction(menuEntry, r.description, r.mountpoint), "hotplug_%s" % r.mountpoint, None) for r in harddiskmanager.getMountedPartitions(onlyhotplug = True)]
 
 def Plugins(**kwargs):
        return [ PluginDescriptor(name="MediaScanner", description="Scan Files...", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main),