feat: 增加d_scihub 调用

This commit is contained in:
caoqianming 2026-02-03 15:53:13 +08:00
parent 33a6dbf431
commit 43e8dbc226
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ def download_pdf(paper_id):
# if paper.has_fulltext_pdf is False and cache.get("openalex_api_exceed") is None: # if paper.has_fulltext_pdf is False and cache.get("openalex_api_exceed") is None:
# current_from = "openalex" # current_from = "openalex"
# msg = save_pdf_from_openalex(paper) # msg = save_pdf_from_openalex(paper)
if paper.has_fulltext_pdf is False: if paper.has_fulltext_pdf is False and paper.publication_year <= 2021:
msg = save_pdf_from_scihub(paper) msg = save_pdf_from_scihub(paper)
return msg, current_from return msg, current_from
finally: finally: