Made downloading metadata optional and the URL configurable
(cherry picked from commit 9353423b4a95a4912c32e76ccb3fefce5de0f3f1)