mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Implemented the return of unique files for storage
This commit is contained in:
12
main.py
12
main.py
@@ -1,19 +1,19 @@
|
||||
#!/usr/bin/python
|
||||
import sys
|
||||
from PIL import Image
|
||||
sys.path.insert(1, 'lib/')
|
||||
from pyShelf import InitFiles, Epub
|
||||
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
|
||||
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
|
||||
Epub().import_books() # Filter Your books
|
||||
new_books = Catalogue.new_files()
|
||||
Epub().import_books(new_books) # Filter Your books
|
||||
# TODO Implement file tracking system to avoid processing already tracked books
|
||||
# TODO Figure out a system to get books page count
|
||||
# TODO Update testing
|
||||
# TODO Update Documentation
|
||||
# TODO Requirements.txt
|
||||
# TODO Test image storage
|
||||
# TODO Test image storage
|
||||
|
||||
Reference in New Issue
Block a user