Skip to content

Commit

Permalink
add cover
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang committed Nov 21, 2023
1 parent f934444 commit ca9fa65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weread.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def download_image(url, save_dir='cover'):
cover += ".jpg"
if(cover.startswith("http") and not cover.endswith(".jpg")):
path = download_image(cover)
cover = "https://raw.githubusercontent.com/{repository}/{branch}/{path}"
cover = f"https://raw.githubusercontent.com/{repository}/{branch}/{path}"
print(cover)
bookId = book.get("bookId")
author = book.get("author")
Expand Down

0 comments on commit ca9fa65

Please sign in to comment.