Slogger
Slogger copied to clipboard
Pinboardlogger doesn't like my URL
Hi all,
I've had a few issues getting Slogger to work but so far I've managed to overcome them all, bar one: Pinboardlogger throws an error when I give it my RSS URL.
My config:
PinboardLogger:
pinboard_description:
- Logs bookmarks for today from Pinboard.in.
- pinboard_feeds is an array of one or more Pinboard RSS feeds
- pinboard_digest true will group all new bookmarks into one post, false will split
them into individual posts dated when the bookmark was created
PinboardLogger_last_run: Wed May 14 22:22:33 2014
pinboard_feeds: https://feeds.pinboard.in/rss/u:oliverhaslam
pinboard_tags: '#social #bookmarks'
pinboard_save_hashtags: true
pinboard_digest: true
and the result:
MacBook2008:Slogger-master oli$ ./slogger -o pinboardlogger Initializing Slogger v2.1 (2.1.0.11)... 22:33:23 PinboardLogger: Getting Pinboard bookmarks for 44 feeds /Users/oli/Slogger-master/plugins/pinboardlogger.rb:70:in
do_log': undefined method
each' for "https://feeds.pinboard.in/rss/u:oliverhaslam":String (NoMethodError) from /Users/oli/Slogger-master/slogger.rb:283:inblock in run_plugins' from /Users/oli/Slogger-master/slogger.rb:270:in
each' from /Users/oli/Slogger-master/slogger.rb:270:inrun_plugins' from /Users/oli/Slogger-master/slogger.rb:446:in
<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from ./slogger:18:in `' MacBook2008:Slogger-master oli$
As far as I can tell, it's all configured correctly. Obviously not!
Any bright ideas?
Cheers.
Ah, yeah. You need to make the pinboard feeds an array:
- pinboard_feeds: [https://feeds.pinboard.in/rss/u:oliverhaslam]
That should solve it. Next time it runs it will reformat it into multiple lines, but it will still be correct.
Thought I'd tried that. No dice.
Macbook2008:Slogger-master oli$ ./slogger -o pinboardlogger /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in
parse': (<unknow n>): found unexpected ':' while scanning a plain scalar at line 61 column 20 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in
par se_stream' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:inpar se' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in
loa d' from /Users/oli/Slogger-master/lib/configtools.rb:11:inblock in load_config' from /Users/oli/Slogger-master/lib/configtools.rb:11:in
open' from /Users/oli/Slogger-master/lib/configtools.rb:11:inload_config' from /Users/oli/Slogger-master/slogger.rb:183:in
initialize' from /Users/oli/Slogger-master/slogger.rb:422:innew' from /Users/oli/Slogger-master/slogger.rb:422:in
<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/ke rnel_require.rb:55:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/ke rnel_require.rb:55:in
require' from ./slogger:18:in `'
Using:
PinboardLogger: pinboard_description:
- Logs bookmarks for today from Pinboard.in.
- pinboard_feeds is an array of one or more Pinboard RSS feeds
- pinboard_digest true will group all new bookmarks into one post, false will split them into individual posts dated when the bookmark was created PinboardLogger_last_run: Wed May 14 22:22:33 2014 pinboard_feeds: [https://feeds.pinboard.in/rss/u:oliverhaslam] pinboard_tags: '#social #bookmarks' pinboard_save_hashtags: true pinboard_digest: true FoursquareLogger:
Post your config as a gist, I can't really tell what's what in your paste. The new error indicates another formatting issue at line 61 of your config.
Here we go: https://gist.github.com/oliverhaslam/72db01836c5a65a8018b
Line 61 is part of the LastFM logger.
Cheers.
See all these hard breaks?
- save_images (true/false) determines whether TwitterLogger will look for ima
ge
urls and include them in the entry
- save_favorites (true/false) determines whether TwitterLogger will look for
the
that's most likely the issue. I would rename the file, run slogger --update-config
to create a fresh one and copy your config values over.
Cheers. I'll give it a whirl and report back in the morning.