Skip to content

Commit

Permalink
🐛 Inform user if book not downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
codycodes committed Aug 29, 2020
1 parent 2c6a30e commit 9339277
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/alfred_books.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9339277

Please sign in to comment.