1 Commits
v3 ... patch-1

Author SHA1 Message Date
Juni
3c1c9d9544 Fix for double posting issues
This if statement is such that if there is no title in this feed it meets the criteria for this If and the one above and thus gets placed in the queue twice and double posted. Ive seen this in Mastodon feeds for example.


                if (last_title == "" and entry_title == "") and (last_link != entry_link) and (last_time < entry_time):
                    log.debug(f"New entry found via time validation for feed {name} on cid {channel.id} - no title")
                    feedparser_plus_obj = await self._add_to_feedparser_object(entry, url)
                    feedparser_plus_objects.append(feedparser_plus_obj)
2022-12-09 12:29:13 -05:00

View File

@@ -1405,10 +1405,6 @@ class RSS(commands.Cog):
log.debug(f"New entry found via time and link validation for feed {name} on cid {channel.id}") log.debug(f"New entry found via time and link validation for feed {name} on cid {channel.id}")
feedparser_plus_obj = await self._add_to_feedparser_object(entry, url) feedparser_plus_obj = await self._add_to_feedparser_object(entry, url)
feedparser_plus_objects.append(feedparser_plus_obj) feedparser_plus_objects.append(feedparser_plus_obj)
if (last_title == "" and entry_title == "") and (last_link != entry_link) and (last_time < entry_time):
log.debug(f"New entry found via time validation for feed {name} on cid {channel.id} - no title")
feedparser_plus_obj = await self._add_to_feedparser_object(entry, url)
feedparser_plus_objects.append(feedparser_plus_obj)
# this is a post that has no time information attached to it and we can only # this is a post that has no time information attached to it and we can only
# verify that the title and link did not match the previously posted entry # verify that the title and link did not match the previously posted entry