RSS: don't output anything if there are no headlines remaining after filtering.

This commit is contained in:
Daniel Folkinshteyn 2011-08-15 13:45:07 -04:00
parent c270111c6b
commit 7c14992fe8

View File

@ -207,6 +207,8 @@ class RSS(callbacks.Plugin):
channelnewheadlines = filter(filter_whitelist, channelnewheadlines)
if len(blacklist) != 0:
channelnewheadlines = filter(filter_blacklist, channelnewheadlines)
if len(channelnewheadlines) == 0:
return
bold = self.registryValue('bold', channel)
sep = self.registryValue('headlineSeparator', channel)
prefix = self.registryValue('announcementPrefix', channel)