From 1c091c9bd892bf763f2fbafffe9f02ca28af9da1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Jun 2012 16:22:53 +0530 Subject: [PATCH] ... --- src/calibre/web/feeds/news.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index 4a8d980fee..2a49804422 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -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 @@ class BasicNewsRecipe(Recipe): 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: