From 93392777ec0569b028f43f4eb1b2ae306b8716cd Mon Sep 17 00:00:00 2001 From: codes Date: Sat, 29 Aug 2020 11:03:37 -0700 Subject: [PATCH] :bug: Inform user if book not downloaded --- src/alfred_books.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alfred_books.py b/src/alfred_books.py index a1aa5be..ebc8ce1 100644 --- a/src/alfred_books.py +++ b/src/alfred_books.py @@ -107,12 +107,12 @@ def main(wf): ) for b in books: - if b.genre == '': - b.genre = 'No genre for this title available in Books' wf.add_item(type='file', title=b.title, valid=True, - subtitle=b.author, + subtitle=b.author if b.path is not None else + 'Please download file in books app first' + ' to open in Alfred Books', arg=b.path, icon=b.path, icontype='fileicon',