feat: 增加d_scihub 调用2
This commit is contained in:
parent
43e8dbc226
commit
51fc1a5c5a
|
|
@ -337,6 +337,7 @@ def download_pdf(paper_id):
|
||||||
# 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 and paper.publication_year <= 2021:
|
if paper.has_fulltext_pdf is False and paper.publication_year <= 2021:
|
||||||
|
current_from = "scihub"
|
||||||
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