mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
199d870b19
commit
b0ffb1fb65
@ -80,9 +80,12 @@ def sony_metadata(oeb):
|
|||||||
m = oeb.metadata
|
m = oeb.metadata
|
||||||
title = short_title = unicode(m.title[0])
|
title = short_title = unicode(m.title[0])
|
||||||
publisher = __appname__ + ' ' + __version__
|
publisher = __appname__ + ' ' + __version__
|
||||||
for k, n in m.title[0].attrib.items():
|
try:
|
||||||
if k.endswith('file-as'):
|
pt = unicode(oeb.metadata.publication_type[0])
|
||||||
short_title = n
|
short_title = u''.join(pt.split(':')[2:])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
date = unicode(m.date[0]).split('T')[0]
|
date = unicode(m.date[0]).split('T')[0]
|
||||||
except:
|
except:
|
||||||
|
@ -1102,10 +1102,9 @@ class BasicNewsRecipe(Recipe):
|
|||||||
if self.output_profile.periodical_date_in_title:
|
if self.output_profile.periodical_date_in_title:
|
||||||
title += strftime(self.timefmt)
|
title += strftime(self.timefmt)
|
||||||
mi = MetaInformation(title, [__appname__])
|
mi = MetaInformation(title, [__appname__])
|
||||||
mi.title_sort = self.short_title()
|
|
||||||
mi.publisher = __appname__
|
mi.publisher = __appname__
|
||||||
mi.author_sort = __appname__
|
mi.author_sort = __appname__
|
||||||
mi.publication_type = 'periodical:'+self.publication_type
|
mi.publication_type = 'periodical:'+self.publication_type+':'+self.short_title()
|
||||||
mi.timestamp = nowf()
|
mi.timestamp = nowf()
|
||||||
mi.comments = self.description
|
mi.comments = self.description
|
||||||
if not isinstance(mi.comments, unicode):
|
if not isinstance(mi.comments, unicode):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user