add "Source: author" only if authors is present

This commit is contained in:
cquest 2022-05-02 16:06:54 +02:00
parent 6a58efdec9
commit 75e0353dc6

View File

@ -130,7 +130,9 @@ for t in reversed(d.entries):
c = c.replace('\xa0', ' ')
if twitter is None:
c = c + '\nSource: '+ t.authors[0].name +'\n\n' + t.link
if 'authors' in t:
c = c + '\nSource: '+ t.authors[0].name
c = c + '\n\n' + t.link
if tags:
c = c + '\n' + tags