Files
pyShelf/main.py
2019-10-01 17:30:36 -04:00

19 lines
541 B
Python
Executable File

#!/usr/bin/python
# import zipfile as Zip
import sys
sys.path.insert(1, 'lib/')
from pyShelf import InitFiles
from config import Config
from library import Catalogue
# Get configuration settings
config = Config()
# Initialize file system
InitFiles(config.file_array)
# Open the Catalogue
Catalogue = Catalogue()
# Filter Your books
# This only needs to be run on first run, & when new books are added
book_list = Catalogue.filter_books()
for book in book_list:
extracted = Catalogue.extract_metadata(book_list[book])
print(extracted)