Adjust file extension grabbing

This commit is contained in:
th3r00t
2020-02-01 23:17:26 -05:00
parent 9edf182c2b
commit 8767dd4c26
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class Catalogue:
:returns self._book_list_expanded: json string containing all book metadata
"""
self.scan_folder()
self.scan_folder() # Populate file list
regx = re.compile(r"\.epub")
try:
self.books = list(filter(regx.search, filter(None, self.file_list)))