Skip to content

Commit

Permalink
🐛 fix(rss): cannot add and send web rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
ascpial committed Dec 20, 2023
1 parent 9fb7ada commit 872cdf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/rss/langs/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ en:
web-help: "To search for an rss feed from any website, just enter the url of the rss/atom feed as a parameter. If the feed is valid, I will return the last article posted on this site"
web-invalid: "Oops, this url address is invalid :confused:"
yt: "YouTube"
yt-default-flow: "{logo} | New vidéo from {author}: **{title}**\nPublished on {date}\nLink: {link}\n{mentions}"
yt-form-last: "{logo} | ere is the last video of {author}:\n{title}\nPublished on {date}\nLink: {url}"
yt-default-flow: "{logo} | New video from {author}: **{title}**\nPublished on {date}\nLink: {link}\n{mentions}"
yt-form-last: "{logo} | Here is the last video of {author}:\n{title}\nPublished on {date}\nLink: {url}"
yt-help: "To search for a youtube channel, you need to enter the id of this channel. You will find it at the end of the url of the channel, it can be either the name or a random sequence of characters"
4 changes: 2 additions & 2 deletions plugins/rss/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async def system_add(self, ctx: MyContext, link):
)
self.logger.info(
"RSS feed added into server %i (%s - %i)",
ctx.guild.ig,
ctx.guild.id,
link,
feed_id,
)
Expand Down Expand Up @@ -1524,7 +1524,7 @@ async def check_flow(
flow["channel"],
)
return False
obj.format = flow["structure"]
obj.message_format = flow["structure"]
obj.embed = bool(flow["use_embed"])
if obj.embed:
obj.fill_embed_data(flow)
Expand Down

0 comments on commit 872cdf0

Please sign in to comment.