Put task in function and made metadata_url unicode