mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
workin on new book check system
This commit is contained in:
9
main.py
9
main.py
@@ -1,19 +1,16 @@
|
||||
#!/usr/bin/python
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from pyShelf import InitFiles, Epub
|
||||
from pyShelf import InitFiles
|
||||
from config import Config
|
||||
from library import Catalogue
|
||||
|
||||
config = Config() # Get configuration settings
|
||||
InitFiles(config.file_array) # Initialize file system
|
||||
Catalogue = Catalogue() # Open the Catalogue
|
||||
# This only needs to be run on first run, & when new books are added
|
||||
new_books = Catalogue.new_files()
|
||||
Epub().import_books(new_books) # Filter Your books
|
||||
# TODO Implement file tracking system to avoid processing already tracked books
|
||||
# new_books = Catalogue.new_files()
|
||||
Catalogue.import_books() # Filter Your books
|
||||
# TODO Figure out a system to get books page count
|
||||
# TODO Update testing
|
||||
# TODO Update Documentation
|
||||
# TODO Requirements.txt
|
||||
# TODO Test image storage
|
||||
|
||||
Reference in New Issue
Block a user