mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-27 22:36:21 +01:00
...
This commit is contained in:
parent
313b4634d6
commit
1c091c9bd8
1 changed files with 4 additions and 2 deletions
|
|
@ -77,7 +77,8 @@ class BasicNewsRecipe(Recipe):
|
|||
delay = 0
|
||||
|
||||
#: Publication type
|
||||
#: Set to newspaper, magazine or blog
|
||||
#: Set to newspaper, magazine or blog. If set to None, no publication type
|
||||
#: metadata will be written to the opf file.
|
||||
publication_type = 'unknown'
|
||||
|
||||
#: Number of simultaneous downloads. Set to 1 if the server is picky.
|
||||
|
|
@ -1264,7 +1265,8 @@ def create_opf(self, feeds, dir=None):
|
|||
mi = MetaInformation(title, [__appname__])
|
||||
mi.publisher = __appname__
|
||||
mi.author_sort = __appname__
|
||||
mi.publication_type = 'periodical:'+self.publication_type+':'+self.short_title()
|
||||
if self.publication_type:
|
||||
mi.publication_type = 'periodical:'+self.publication_type+':'+self.short_title()
|
||||
mi.timestamp = nowf()
|
||||
article_titles, aseen = [], set()
|
||||
for f in feeds:
|
||||
|
|
|
|||
Loading…
Reference in a new issue