encapsulate function download_torrent
add automatic download