mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
RSS: fix initialAnnounceHeadlines not being obeyed
This commit is contained in:
parent
b375e7dfb2
commit
56c80e62f1
@ -200,6 +200,7 @@ class RSS(callbacks.Plugin):
|
||||
if normalize(headline) in oldheadlinesset:
|
||||
newheadlines[i] = None
|
||||
newheadlines = filter(None, newheadlines) # Removes Nones.
|
||||
number_of_headlines = len(oldheadlines)
|
||||
oldheadlines.extend(newheadlines)
|
||||
self.cachedHeadlines[url] = oldheadlines
|
||||
if newheadlines:
|
||||
@ -218,7 +219,7 @@ class RSS(callbacks.Plugin):
|
||||
break
|
||||
return v
|
||||
for channel in channels:
|
||||
if len(oldheadlines) == 0:
|
||||
if number_of_headlines == 0:
|
||||
channelnewheadlines = newheadlines[:self.registryValue('initialAnnounceHeadlines', channel)]
|
||||
else:
|
||||
channelnewheadlines = newheadlines[:]
|
||||
|
Loading…
Reference in New Issue
Block a user