Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Pinboardlogger doesn't like my URL

Open oliverhaslam opened this issue 10 years ago • 6 comments

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 methodeach' for "https://feeds.pinboard.in/rss/u:oliverhaslam":String (NoMethodError) from /Users/oli/Slogger-master/slogger.rb:283:in block in run_plugins' from /Users/oli/Slogger-master/slogger.rb:270:ineach' from /Users/oli/Slogger-master/slogger.rb:270:in run_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:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' 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.

oliverhaslam avatar May 14 '14 21:05 oliverhaslam

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.

ttscoff avatar May 14 '14 22:05 ttscoff

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:inpar se_stream' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in par se' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:inloa d' from /Users/oli/Slogger-master/lib/configtools.rb:11:in block in load_config' from /Users/oli/Slogger-master/lib/configtools.rb:11:inopen' from /Users/oli/Slogger-master/lib/configtools.rb:11:in load_config' from /Users/oli/Slogger-master/slogger.rb:183:ininitialize' from /Users/oli/Slogger-master/slogger.rb:422:in new' 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:in require' 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 ./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:

oliverhaslam avatar May 14 '14 23:05 oliverhaslam

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.

ttscoff avatar May 15 '14 01:05 ttscoff

Here we go: https://gist.github.com/oliverhaslam/72db01836c5a65a8018b

Line 61 is part of the LastFM logger.

Cheers.

oliverhaslam avatar May 15 '14 06:05 oliverhaslam

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.

ttscoff avatar May 15 '14 13:05 ttscoff

Cheers. I'll give it a whirl and report back in the morning.

oliverhaslam avatar May 15 '14 21:05 oliverhaslam