From feaf7ea25cefaa347e6d593bf3a56064b92f16d6 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Fri, 26 Apr 2024 12:44:12 -0400 Subject: [PATCH] probable fix for issue #1112 I used to extract this from web page meta data, but this approach seems simpler. --- org-ref-arxiv.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/org-ref-arxiv.el b/org-ref-arxiv.el index 0f235c48..bcccde18 100644 --- a/org-ref-arxiv.el +++ b/org-ref-arxiv.el @@ -223,15 +223,7 @@ Returns a formatted BibTeX entry." (arxiv-maybe-arxiv-id-from-current-kill)) (read-string "PDF: "))) - (let ((pdf-url (with-current-buffer - (url-retrieve-synchronously - (concat - "http://arxiv.org/abs/" arxiv-number)) - ;; - (goto-char (point-min)) - (search-forward-regexp - "name=\\\"citation_pdf_url\\\" content=\\\"\\(.*\\)\\\"") - (match-string 1)))) + (let ((pdf-url (format "https://arxiv.org/pdf/%s" arxiv-number))) (url-copy-file pdf-url pdf) ;; now check if we got a pdf (unless (org-ref-pdf-p pdf)