old_contents: import xbmcgui
  
  ACTION_LEFT = 1
  ACTION_RIGHT = 2
  ACTION_UP = 3
  ACTION_DOWN = 4
  ACTION_PAGE_UP = 5
  ACTION_PAGE_DOWN = 6
  ACTION_SELECT_ITEM = 7
  ACTION_PARENT_DIR = 9
  ACTION_PREVIOUS_MENU = 10
  ACTION_SHOW_INFO = 11
  ACTION_NEXT_ITEM = 14
  ACTION_PREV_ITEM = 15
  
  ACTION_MOUSE_WHEEL_UP = 104
  ACTION_MOUSE_WHEEL_DOWN = 105
  ACTION_MOUSE_MOVE = 107
  
  KEY_NAV_BACK = 92
  KEY_CONTEXT_MENU = 117
  KEY_HOME = 159
  
  class DialogSelect(xbmcgui.WindowXMLDialog):
      def __init__(self, *args, **kwargs):
          xbmcgui.WindowXML.__init__(self)
          self.items = kwargs['items']
          self.title = kwargs['title']
          self.count = 0
          self.retval = -1
  
      def onInit(self):
          self.getControl(32501).setLabel(self.title)
          for item in self.items:
              labels = item.split('\n')
              label1 = labels[0]
              try:
                  label2 = labels[1]
              except:
                  label2 = ''
              self.addItem(label1, label2)
  
      def onClick(self, controlId):
          if controlId == 32500:
              # Close Button
              self.close()
          elif controlId == 32503:
              # Panel
              listControl = self.getControl(32503)
              selected = listControl.getSelectedItem()
              self.retval = int(selected.getProperty('index'))
              self.close()
  
      def onAction(self, action):
          if action.getId() in [ACTION_PARENT_DIR, KEY_NAV_BACK, ACTION_PREVIOUS_MENU]:
              self.close()
  
  
      def addItem(self, label1, label2):
          listControl = self.getControl(32503)
          item = xbmcgui.ListItem("[B]%s[/B]" % label1, label2)
          item.setProperty('index', str(self.count))
          listControl.addItem(item)
          self.count += 1
  
new_contents: import xbmcgui
  
  ACTION_LEFT = 1
  ACTION_RIGHT = 2
  ACTION_UP = 3
  ACTION_DOWN = 4
  ACTION_PAGE_UP = 5
  ACTION_PAGE_DOWN = 6
  ACTION_SELECT_ITEM = 7
  ACTION_PARENT_DIR = 9
  ACTION_PREVIOUS_MENU = 10
  ACTION_SHOW_INFO = 11
  ACTION_NEXT_ITEM = 14
  ACTION_PREV_ITEM = 15
  
  ACTION_MOUSE_WHEEL_UP = 104
  ACTION_MOUSE_WHEEL_DOWN = 105
  ACTION_MOUSE_MOVE = 107
  
  KEY_NAV_BACK = 92
  KEY_CONTEXT_MENU = 117
  KEY_HOME = 159
  
  class DialogSelect(xbmcgui.WindowXMLDialog):
      def __init__(self, *args, **kwargs):
          xbmcgui.WindowXML.__init__(self)
          self.items = kwargs['items']
          self.title = kwargs['title']
          self.count = 0
          self.retval = -1
  
      def onInit(self):
          self.getControl(32501).setLabel(self.title)
          for item in self.items:
              labels = item.split('\n')
              label1 = labels[0]
              try:
                  label2 = labels[1]
              except:
                  label2 = ''
              self.addItem(label1, label2)
  
      def onClick(self, controlId):
          if controlId == 32500:
              # Close Button
              self.close()
          elif controlId == 32503:
              # Panel
              listControl = self.getControl(32503)
              selected = listControl.getSelectedItem()
              self.retval = int(selected.getProperty('index'))
              self.close()
  
      def onAction(self, action):
          if action.getId() in [ACTION_PARENT_DIR, KEY_NAV_BACK, ACTION_PREVIOUS_MENU]:
              self.close()
  
      def addItem(self, label1, label2):
          listControl = self.getControl(32503)
          item = xbmcgui.ListItem("[B]%s[/B]" % label1, label2)
          item.setProperty('index', str(self.count))
          listControl.addItem(item)
          self.count += 1
  
subject: Remove blank line