Configure the Discourse RSS Polling Plugin

is it possible to have no new topics but replies ?

Hi Simon, when I have mine active, It’s posting 20 topics at a time, but it’s the same topics getting posted every time. I delete them, but then they will show back up in 10 minutes. How would I make this not happen?

An example of what happens:

This got deleted, but then it just shows back up.

It’s quite greedy isn’t it? :slight_smile: You just need to unlist (manually) instead of deleting.

1 Like

As @Jonathan5 noted, if you delete topics that still exist in the feed, Discourse will recreate the topics the next time it pulls in the feed. Unlisting the topics is probably the best way to deal with that.

If the exact same 20 posts keep getting pulled in, it seems likely that those are the only posts that exist in the feed.

2 Likes

Apparently you can pull in a YouTube channel’s feed with the plugin. Possibly the same approach will work for a playlist. Have a look at this post for details: Is there a YouTube plugin - #3 by CaptainZac. If you get a chance to try this out, let us know if it works.

2 Likes

@simon

The plugin works pretty well, but I have one problem.

All new “posts” are invisible until I set them manually to visible.

Or is this same as you here described?

Yes, you need to disable the embed unlisted site setting so that new topics created from the RSS feed will not be set as unlisted. I am going to update the first post in this topic to add instructions for disabling that setting.

1 Like

@simon

Thank you!

But I need to say that the translation to german is not as good as it should be, because “unlisted” is not the same as “invisible” and that’s why I’m a little bit confused. :wink:

EDIT:
I had a look and in the context the translation is ok.
But in the topic itself you can set the topic visible/invisible and it does the same.
So why are here two different texts?
Or to ask a little bit OT: Is in Discourse listed/unlisted the same as visible/invisible?

1 Like

@simon and for anyone else having issues with getting images to work:

  1. Use Zapier or something similar to strip HTML tags from the content, and then publish feed
  2. Enable markdown for embedded posts in your site settings

Images will now work as usual.

I’m not understanding this part. I am getting the feed articles, but they are only viewable by the admin (they appear to be not listed) and they are not going into the correct categories.

And I don’t understand what this means - " Replace REPLACE_ME with the canonical URL of the page you are embedding it on."

To fix the issue with the topics being set as unlisted, disable your Discourse embed unlisted site setting.

The issue with the topics not being published to the category that you have set is probably happening because the feed’s posts are not being served from the feed’s domain. You will need to look at the raw feed, by loading the feed directly in your browser. Once you have loaded the feed, look for the value of the feed’s link attributes. The domain that is used in this attribute needs is what needs to be added to the Allowed Hosts record that you create. Have a look at Configure the Discourse RSS Polling Plugin for details.

You can ignore that section of the Embedding page. That code is used for displaying Discourse comments on an external site.

1 Like

Thanks! I found the unlisted setting and made that change, all go now.

So I deleted the feeds I had and readded a couple and one of them appears to be working and posting in the correct category. However, even though I have “Maximum number of posts to embed” set to 10, it downloads 1400 posts the first time I add it.

Also, can you explain how to use the Crawler Settings in a little more detail?

Thanks again for the assistance!

It will download every single item in the RSS feed. If you delete a topic it’ll just recreate it. The only way to reduce the number of items it sucks up is to remove them from the RSS feed at source. Once it’s imported something, you can unlist the topic instead of deleting it.

1 Like

Yes, unfortunately the Maximum number of posts to embed setting is not applied to RSS feed items.

2 Likes

2 posts were split to a new topic: EmbeddableHost category section is blank

I’m still interested to hear about this :slight_smile: Thanks.

No, the value that is supplied to the %{link} placeholder is a URL that’s passed to the placeholder in the Discourse code. Changing the name of the placeholder will not have an effect on that.

Thanks. Could it be converted into a link along the lines of DuckDuckGo instead of https://duck.com/?

This won’t work with the current code. The method that’s creating the link is:

  def self.imported_from_html(url)
    "\n<hr>\n<small>#{I18n.t('embed.imported_from', link: "<a href='#{url}'>#{url}</a>")}</small>\n"
  end

That will always create a link with the link’s URL set as the link text.