diff --git a/makeCollections b/makeCollections index 4333055..0e82de7 100755 --- a/makeCollections +++ b/makeCollections @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import pathlib import sys diff --git a/src/backend/lib/library.py b/src/backend/lib/library.py index 9b0686c..320abee 100755 --- a/src/backend/lib/library.py +++ b/src/backend/lib/library.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import json import os import pathlib @@ -128,9 +128,9 @@ class Catalogue: except KeyError: cover_image = None title = book.title().decode("utf-8") - author = book.author().decode( - "utf-8" - ) # TODO some files are still passing encoded data for author. + author = book.author().decode("utf-8") + breakpoint() + # TODO some files are still passing encoded data for author. return [title, author, cover_image, book.f.name] def extract_content(self, book_zip, book): @@ -182,7 +182,8 @@ class Catalogue: Gets a list of new files via compare_shelf_current. Iterates over list and inserts new books into database. """ - # TODO Refactor metadata extraction into process_book call to more easily handle additional formats + # TODO Refactor metadata extraction into process_book \ + # call to more easily handle additional formats book_list = self.compare_shelf_current() db = Storage(self.config) for book in book_list: diff --git a/src/backend/pyShelf_MakeCollections.py b/src/backend/pyShelf_MakeCollections.py index 0f16549..139e394 100755 --- a/src/backend/pyShelf_MakeCollections.py +++ b/src/backend/pyShelf_MakeCollections.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import sys import time @@ -16,7 +16,7 @@ def MakeCollections(root): config = Config(root) # Get configuration settings # InitFiles(config.file_array) # Initialize file system _storage = Storage(config) - _storage.make_collections() + _storage.make_collections() _t2 = time.time() scan_time = round(_t2 - _t1) print("Collections Made.")