if self.translator:
title += ' (tłum. %s)' % self.translator
- copyright = "%s %s. Licensed to the public under %s verify at %s" % (
- self.date, ORGANIZATION, self.license.uri, self.url)
+ copyright = "%s %s." % (
+ self.date, ORGANIZATION)
+ if self.license:
+ copyright += " Licensed to the public under %s verify at %s" % (
+ self.license.uri, self.url)
comment = "\n".join((
self.project.get_description(),
'date': self.date,
'genre': 'Speech',
'language': 'pol',
- 'license': self.license.uri,
'organization': ORGANIZATION,
'title': title,
'project': self.project.name,
}
+ if self.license:
+ tags['license'] = self.license.uri
if self.project.sponsors:
tags['funded_by'] = self.project.sponsors
{
"author": ', '.join((a['name'] for a in audiobook.book['authors'])),
"title": audiobook.book['title'],
+ "part": audiobook.part_name,
},
lambda name: Font.objects.get(name=name).truetype.path
)
if item.get('vskip'):
cursor += item['vskip']
text = item['text'].format(**context)
+ if not text:
+ continue
if item.get('uppercase'):
text = text.upper()
font = ImageFont.truetype(get_font_path(item['font-family']), item['font-size'])