Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

undefined method `pubDate' on rss logging #2

Closed
gerrymanoim opened this issue Aug 24, 2012 · 3 comments
Closed

undefined method `pubDate' on rss logging #2

gerrymanoim opened this issue Aug 24, 2012 · 3 comments

Comments

@gerrymanoim
Copy link

Here is the output I get when run:

 % ./slogger                                                                        !217
I, [2012-08-24T15:31:35.452269 #67032]  INFO -- : Getting Last.fm playists for newtux
I, [2012-08-24T15:31:36.367101 #67032]  INFO -- : Saving entry to /Users/newtux/Library/Mobile Documents/5U8NS4GX82~com~dayoneapp~dayone/Documents/Journal_dayone/entries/5DD8E11C0B3842279A15A9ACF7875656.doentry
I, [2012-08-24T15:31:36.891334 #67032]  INFO -- : Logging rss posts for feeds http://feeds.pinboard.in/rss/secret:55e973286caf5351e171/u:newtux/, http://www.instapaper.com/rss/197788/5onzKNiSWl9uXgBvHW9V2vkRO60
/Applications/Slogger/plugins/rsslogger.rb:62:in `do_log': undefined method `pubDate' for #<RSS::RDF::Item:0x101adf7f8> (NoMethodError)
    from /Applications/Slogger/plugins/rsslogger.rb:61:in `each'
    from /Applications/Slogger/plugins/rsslogger.rb:61:in `do_log'
    from /Applications/Slogger/plugins/rsslogger.rb:54:in `each'
    from /Applications/Slogger/plugins/rsslogger.rb:54:in `do_log'
    from ./slogger:97:in `run_plugins'
    from ./slogger:90:in `each'
    from ./slogger:90:in `run_plugins'
    from ./slogger:137

Maybe there's a better way to log pinboard and Instapaper entries?

@ttscoff
Copy link
Owner

ttscoff commented Aug 25, 2012

Instapaper I just added a plugin for. Pinboard uses dc:date instead of pubDate, so you'd need to copy the rssplugin to a new plugin and modify it. I'm planning to add a Pinboard plugin soon enough, though.

@ttscoff
Copy link
Owner

ttscoff commented Aug 26, 2012

I think I have this fixed, though I still don't recommend it for Pinboard. Pinboard needs its own plugin to create digests of links from the day, whereas the RSS plugin creates a journal entry for every RSS item (thus an entry for every link you bookmark). I'll whip one up soon.

@ttscoff ttscoff closed this as completed Aug 26, 2012
@gerrymanoim
Copy link
Author

Thanks for all the help and awesome stuff you keep putting out. Keep up the great work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants