Fixed improper python shebang

This commit is contained in:
Raelon Masters
2020-05-31 13:51:25 -04:00
parent 7ee9c57ed1
commit 60f7184a3a
3 changed files with 9 additions and 8 deletions

2
makeCollections vendored
View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import pathlib
import sys

View File

@@ -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:

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import sys
import time