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:
@@ -22,22 +22,3 @@ class InitFiles:
|
||||
os.mkdir(os.path.split(_pointer)[0])
|
||||
f = open(_pointer, "w+")
|
||||
f.close()
|
||||
|
||||
|
||||
class Epub:
|
||||
"""All Epub file handling"""
|
||||
def __init__(self):
|
||||
global config
|
||||
self.book_path = config.book_path
|
||||
self.Catalogue = Catalogue()
|
||||
|
||||
def import_books(self, list=None):
|
||||
if list is not None: book_list = list
|
||||
else: book_list = self.Catalogue.filter_books()
|
||||
for book in book_list:
|
||||
extracted = self.Catalogue.extract_metadata(book_list[book])
|
||||
Storage.insert_book(extracted)
|
||||
Storage.commit()
|
||||
|
||||
def book_list(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user