ignore citation_pdf_url on aip.org
This commit is contained in:
parent
120f8fbfc0
commit
8a1b2c503e
@ -164,6 +164,10 @@ def download_url(url):
|
|||||||
citation_pdf_url = find_citation_pdf_url(tree, url)
|
citation_pdf_url = find_citation_pdf_url(tree, url)
|
||||||
citation_title = find_citation_title(tree)
|
citation_title = find_citation_title(tree)
|
||||||
|
|
||||||
|
# aip.org sucks, citation_pdf_url is wrong
|
||||||
|
if "link.aip.org/" in citation_pdf_url:
|
||||||
|
citation_pdf_url = None
|
||||||
|
|
||||||
# wow, this seriously needs to be cleaned up
|
# wow, this seriously needs to be cleaned up
|
||||||
if citation_pdf_url and citation_title:
|
if citation_pdf_url and citation_title:
|
||||||
citation_title = citation_title.encode("ascii", "ignore")
|
citation_title = citation_title.encode("ascii", "ignore")
|
||||||
|
Loading…
Reference in New Issue
Block a user