We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e81c54 commit 5fb3774Copy full SHA for 5fb3774
plugins/gbif/plugin.py
@@ -112,6 +112,9 @@ def get_metadata(self):
112
logging.debug("Request was not redirected")
113
114
final_url = final_url.replace("/resource?", "/eml.do?")
115
+ if "gbif.org" in final_url:
116
+ final_url = final_url.replace("www.gbif.org/", "api.gbif.org/v1/")
117
+ final_url = final_url + "/document"
118
response = requests.get(final_url, verify=False)
119
tree = ET.fromstring(response.text)
120
0 commit comments