ether / ep_rss

RSS feeds for Etherpad pads
Other
4 stars 4 forks source link

RSS not working at all... #3

Closed dtygel closed 11 years ago

dtygel commented 11 years ago

Hi John,

I installed ep_rss through the admin pannel in http://pad.eita.org.br/p/ , but nothing happens in the feed link provided in the "share" button: There is always an empty RSS file. See for example:

http://pad.eita.org.br/p/teste/feed

http://pad.eita.org.br/p/teste

 No matter what you type, no new RSS feed is generated: we get always the empty XML.

 Am I missing something? Should I put something in settings.json? Or if it's an error, how can I help?

   Thank you,

         daniel
JohnMcLear commented 11 years ago

https://github.com/JohnMcLear/ep_rss/blob/master/index.js#L32 is worrying :package:

var staleTime = settings.rss.staleTime || 300000; // 5 minutes, value should be set in settings

suggests it takes 5 minutes for an RSS feed to be generated for a change..

Did you read through the source at all before creating this issue? If not, please do :)

JohnMcLear commented 11 years ago

https://github.com/dtygel/tinymce-etherpadlite-embed looks cool btw :)

dtygel commented 11 years ago

Hi John,

Yes, I looked at the code, and saw the staletime variable, and then saw the lines: if(currTS - message.lastEdited < staleTime){ } else { }

So it seemed to me that the stale time meant "last edited at at least 5 minutes ago". But since this pad (http://pad.eita.org.br/p/teste) is live for several days and the RSS (http://pad.eita.org.br/p/teste/feed) is still empty, maybe I simply didn't understand the way it works.

Let me explain why we're interested in this plugin: if we have RSS of the editions in a pad, we can generate actions using IFTTT or similar applications to send SMS, e-mails or whatever. This would be really cool!

I'm glad you liked the simple etherpad plugin for tinymce. It's being very useful in http://cirandas.net :-)

Greetings from Costa Rica,

daniel

JohnMcLear commented 11 years ago

Afaik the RSS feed updates when an edit is done, if the edit is more than 5mins old but happened since the plugin was installed then it should update the RSS feed.

I don't really know how stable this plugin is though, it was just a weekend project I don't think any client has leveraged it. I'm happy for bugfixes etc. :)

dtygel commented 11 years ago

This is a great plugin. Problem is solved (https://github.com/JohnMcLear/ep_rss/pull/4).

Thank you John for the great contributions to etherpad-lite!