'Start a download from an argument. This argument can be of the following type:
-http: Start a download from a torrent file at the given url.
-magnet: Start a download from a torrent file by using a magnet link.
-file: Start a download from a torrent file at given location.
:param uri: specifies the location of the torrent to be downloaded
:param download_config: an optional configuration for the download
:return: a deferred that fires when a download has been added to the Tribler core'

def start_download_from_uri(self, uri, download_config=None):

    if self.config.get_libtorrent_enabled():
        return self.lm.ltmgr.start_download_from_uri(uri, dconfig=download_config)
    raise OperationNotEnabledByConfigurationException()
