This commit is contained in:
Kovid Goyal 2010-10-18 22:31:53 -06:00
parent 199d870b19
commit b0ffb1fb65
2 changed files with 7 additions and 5 deletions

View File

@ -80,9 +80,12 @@ def sony_metadata(oeb):
m = oeb.metadata
title = short_title = unicode(m.title[0])
publisher = __appname__ + ' ' + __version__
for k, n in m.title[0].attrib.items():
if k.endswith('file-as'):
short_title = n
try:
pt = unicode(oeb.metadata.publication_type[0])
short_title = u''.join(pt.split(':')[2:])
except:
pass
try:
date = unicode(m.date[0]).split('T')[0]
except:

View File

@ -1102,10 +1102,9 @@ class BasicNewsRecipe(Recipe):
if self.output_profile.periodical_date_in_title:
title += strftime(self.timefmt)
mi = MetaInformation(title, [__appname__])
mi.title_sort = self.short_title()
mi.publisher = __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.comments = self.description
if not isinstance(mi.comments, unicode):