mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
313b4634d6
commit
1c091c9bd8
@ -77,7 +77,8 @@ class BasicNewsRecipe(Recipe):
|
|||||||
delay = 0
|
delay = 0
|
||||||
|
|
||||||
#: Publication type
|
#: 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'
|
publication_type = 'unknown'
|
||||||
|
|
||||||
#: Number of simultaneous downloads. Set to 1 if the server is picky.
|
#: Number of simultaneous downloads. Set to 1 if the server is picky.
|
||||||
@ -1264,6 +1265,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
mi = MetaInformation(title, [__appname__])
|
mi = MetaInformation(title, [__appname__])
|
||||||
mi.publisher = __appname__
|
mi.publisher = __appname__
|
||||||
mi.author_sort = __appname__
|
mi.author_sort = __appname__
|
||||||
|
if self.publication_type:
|
||||||
mi.publication_type = 'periodical:'+self.publication_type+':'+self.short_title()
|
mi.publication_type = 'periodical:'+self.publication_type+':'+self.short_title()
|
||||||
mi.timestamp = nowf()
|
mi.timestamp = nowf()
|
||||||
article_titles, aseen = [], set()
|
article_titles, aseen = [], set()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user