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:
3
main.py
3
main.py
@@ -19,6 +19,9 @@ Catalogue = Catalogue()
|
||||
book_list = Catalogue.filter_books()
|
||||
for book in book_list:
|
||||
extracted = Catalogue.extract_metadata(book_list[book])
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user