feat: 增加d_scihub 调用
This commit is contained in:
parent
33a6dbf431
commit
43e8dbc226
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue