Skip to content

Commit

Permalink
bugFix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmerwang committed Oct 16, 2022
1 parent e02a9e4 commit 9899e0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions autoliterature/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,15 @@ def extract_json_info(self, bib):
authors = "No author"

if 'short-container-title' in bib.keys():
journal = bib['short-container-title'][0]
try:
journal = bib['short-container-title'][0]
except:
journal = "No journal"
else:
journal = bib['container-title'][0]
try:
journal = bib['container-title'][0]
except:
journal = "No journal"

bib_dict = {
"title": bib['title'][0],
Expand Down Expand Up @@ -154,4 +160,4 @@ def get_info_by_title(self, title):

print(bib_doi)
print("\n")
# print(bib_title)
# print(bib_title)
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="autoliter",
version="0.1.2",
version="0.1.3",
description=" Helps you manage your literature notes",
long_description=README_MD,
long_description_content_type='text/markdown',
Expand All @@ -28,6 +28,6 @@
license="AGPLv3",
author="Wilmer Wang",
author_email="wangwei0206@foxmail.com",
download_url="https://github.com/WilmerWang/autoLiterature/archive/refs/tags/v0.1.2.tar.gz",
download_url="https://github.com/WilmerWang/autoLiterature/archive/refs/tags/v0.1.3.tar.gz",
keywords=["bibtex", "arxiv", "doi", "science", "scientific-journals"],
)
)

0 comments on commit 9899e0b

Please sign in to comment.