|
pyShelf Open Source Ebook Server 0.8.0
FOSS E-Book Server, https://pyshelf.com
|
Public Member Functions | |
| __init__ (self) | |
| scan_folder (self, _path=None) | |
| import_books (self, **kwargs) | |
| filter_books (self) | |
| process_by_filetype (self, book) | |
| extract_metadata_epub (self, book) | |
| extract_metadata_pdf (self, book) | |
| extract_metadata_mobi (self, book) | |
| extract_content (self, book_zip, book) | |
| extract_cover_html (self, book_zip, book) | |
| extract_cover_image (self, book_zip, book) | |
| compare_shelf_current (self) | |
Static Public Member Functions | |
| process_epub (book) | |
| stripTags (source) | |
Public Attributes | |
| list | file_list = [] |
| opf_regx = re.compile(r"\.opf") | |
| cover_regx = re.compile(r"\.jpg|\.jpeg|\.png|\.bmp|\.gif") | |
| html_regx = re.compile(r"\.html") | |
| title_sanitization_regx = re.compile(r"^(Book )+[0-9]*") | |
| title_sanitization_lvl2_regx | |
| title_sanitization_dirs_regx = re.compile(r"/") | |
| root_dir = config.root | |
| book_folder = config.book_path | |
| books = None | |
| db_pointer = config.catalogue_db | |
| config = config | |
Aynchronous overide of library.Catalogue, : TODO : Complete or discard this overide
| src.backend.lib.overide.ACatalogue.__init__ | ( | self | ) |
|
inherited |
Calls storage system, gets list of books stored and compares against files on disk
|
inherited |
Opens epub as zip file filters then stores as list any files matching opf_regx
|
inherited |
Opens epub as zip file filters then stores as list any files matching html_regx
|
inherited |
Opens epub as zip file filters then stores as list any files matching cover_regx
|
inherited |
Extract metadata from epub file :param book: Dictionary of epub file contents :returns: Dictionary of book metadata
|
inherited |
|
inherited |
Return extracted metadata :NOTES: Retrieval of data has been problematic, some pdf's providing reliable titles that corespond with the actual, and others being nonsense.
|
inherited |
Calls scan_folder and filters out book files. :returns self._book_list_expanded: json string containing all book metadata
Reimplemented in src.backend.tests.library_test.Test_Catalogue.
| src.backend.lib.overide.ACatalogue.import_books | ( | self, | |
| ** | kwargs ) |
Async overide of import_books
Reimplemented from src.backend.lib.library.Catalogue.
|
inherited |
Determine books filetype and process.
|
staticinherited |
Return dictionary of epub file contents
| src.backend.lib.overide.ACatalogue.scan_folder | ( | self, | |
| _path = None ) |
Scan folder by _path, allows recurisive scanning
Reimplemented from src.backend.lib.library.Catalogue.
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |