Notify empty titles in red during add or update.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2015-11-13 13:43:33 +05:30
parent 86047f9b40
commit 4bb704f3bf

5
markit
View File

@ -198,7 +198,10 @@ def AddUpdateEntry(conn, cur, keywords, index):
if online == True:
meta = meta.strip().replace("\n","")
print("Title: [%s]" % meta)
if meta == '':
print("\x1B[91mTitle: []\x1B[0m")
else:
print("Title: [%s]" % meta)
if index == None: # Insert a new entry
try: