parameters: (self, line)
docstring: download <name> -- Downloads an item by name in the feed/playlist
          selected.
docstring_summary: download <name> -- Downloads an item by name in the feed/playlist
          selected.
docstring_tokens: download <name > -- Downloads an item by name in the feed / playlist selected .
function: def do_download(self, line):
          """download <name> -- Downloads an item by name in the feed/playlist
          selected.
          """
          if self.selection_type is None:
              print "Error: No feed/playlist selected."
              return
          item = self._find_item(line)
          if item is None:
              print "No item named %r" % line
              return
          if item.get_state() == 'downloading':
              print '%s is currently being downloaded' % item.get_title()
          elif item.is_downloaded():
              print '%s is already downloaded' % item.get_title()
          else:
              item.download()
function_tokens: def do_download ( self , line ) : if self . selection_type is None : print "Error: No feed/playlist selected." return item = self . _find_item ( line ) if item is None : print "No item named %r" % line return if item . get_state ( ) == 'downloading' : print '%s is currently being downloaded' % item . get_title ( ) elif item . is_downloaded ( ) : print '%s is already downloaded' % item . get_title ( ) else : item . download ( )