Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tumblr Migrator dies on audio posts #14
First - I am not a ruby guy, but I know enough to dig into pure ruby code.
I was trying to run the migrator, and it kept dying with:
I dug into that line, dumped some vars, and figured out that it looks like the at function (due to a change in structure) was not there, but removing it worked fine:
when "audio" if !post["id3-title"].nil? title = post["id3-title"] content = post["audio-player"] + "<br/>" + post["audio-caption"] else title = post["audio-caption"] content = post["audio-player"] end
Sorry I can't contribute a pull request - I dont know near enough about gems or testing them.
Hey I ran across the same thing. (Hash#at ???)
Using jekyll-import 0.1.0.beta1
require 'rubygems' ## # Monkeypatch to fix the following # tumblr.rb:73 # content = post.at["audio-player"] + "<br/>" + post["audio-caption"] class Hash def at self end end begin require 'jekyll/jekyll-import/tumblr' rescue puts "Missing jekyll-import gem. Do this: gem install jekyll-import --pre" exit -1 end JekyllImport::Tumblr.process("http://slog.keyvanfatehi.com", true)