Shell script to convert torrent file to magnet link