Fixed bug that occours when description is missing in subject
This commit is contained in:
parent
900fe4e36a
commit
d4966fabe4
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ for line in url:
|
|||
|
||||
if options.description:
|
||||
description = line.strip()
|
||||
description = ' (' + re.sub('</a>,', '', re.sub('(.*):(.*):', '', description))[:50].strip() + '...)'
|
||||
try:
|
||||
description = re.sub('</a>,', '', description)
|
||||
description = ' (' + description.split(':')[2] + ')'
|
||||
except:
|
||||
description = ''
|
||||
item.append(description)
|
||||
else:
|
||||
item.append('')
|
||||
|
|
Loading…
Add table
Reference in a new issue