mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-10 02:54:29 +01:00
...
This commit is contained in:
parent
c43277eae0
commit
75e6bd1452
1 changed files with 4 additions and 2 deletions
|
|
@ -1069,8 +1069,10 @@ def CAL_ELEM(name, content):
|
|||
dc_attrs={'id':__appname__+'_id'}))
|
||||
if getattr(self, 'pubdate', None) is not None:
|
||||
a(DC_ELEM('date', self.pubdate.isoformat()))
|
||||
a(DC_ELEM('language', self.language if self.language else
|
||||
get_lang().replace('_', '-')))
|
||||
lang = self.language
|
||||
if not lang or lang.lower() == 'und':
|
||||
lang = get_lang().replace('_', '-')
|
||||
a(DC_ELEM('language', lang))
|
||||
if self.comments:
|
||||
a(DC_ELEM('description', self.comments))
|
||||
if self.publisher:
|
||||
|
|
|
|||
Loading…
Reference in a new issue