mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Temporarily display cover image
This commit is contained in:
7
main.py
7
main.py
@@ -19,7 +19,10 @@ Catalogue = Catalogue()
|
||||
book_list = Catalogue.filter_books()
|
||||
for book in book_list:
|
||||
extracted = Catalogue.extract_metadata(book_list[book])
|
||||
cover_image = Image.open(extracted[2])
|
||||
cover_image.show()
|
||||
# TODO Insert extracted data to database
|
||||
if extracted[2] != False:
|
||||
# Only display if a image is present
|
||||
cover_image = Image.open(extracted[2])
|
||||
cover_image.show()
|
||||
# TODO Insert book in database
|
||||
print(extracted)
|
||||
Reference in New Issue
Block a user