Closed piater closed 1 year ago
hm. interesting. I use that pattern a lot in that file (and other places too). I guess it is mainly an issue for loading json though?
Perhaps so. This is the only place it bit me. As long as you only extract ASCII material it should not matter. I also use your simple pattern in other places, without problems.
Actually, url-insert
is sufficient (the extra power of url-insert-buffer-contents
should not be needed) and does not require its own url
argument.
any chance you have a doi where the current method fails?
I think the commit above should resolve this.
doi-utils-get-json-metadata
contains the following code:For me, these cause two problems:
url-retrieve-synchronously
does not decode the buffer but returns the raw bytes. This can cause the retrieved json data to contain garbage.Thus, I suggest replacing the above code by the below:
This works for me but I cannot be 100% sure that the current→temp change does not break something somewhere...