Now handles http in addition to magnet.