ignore citation_pdf_url on aip.org

This commit is contained in:
Bryan Bishop 2013-02-06 20:00:50 -06:00
parent 120f8fbfc0
commit 8a1b2c503e
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ def download_url(url):
citation_pdf_url = find_citation_pdf_url(tree, url)
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
if citation_pdf_url and citation_title:
citation_title = citation_title.encode("ascii", "ignore")