Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT importer: excerpt: !ruby/string:Sequel::SQL::Blob #113

Closed
phillipadsmith opened this issue Dec 23, 2013 · 7 comments
Closed

MT importer: excerpt: !ruby/string:Sequel::SQL::Blob #113

phillipadsmith opened this issue Dec 23, 2013 · 7 comments

Comments

@phillipadsmith
Copy link

On several of the posts imported with the MT importer, I'm seeing the following in the .markdown file:

---
layout: post
title: Post Title
date: '2006-05-01 22:52:05 -0500'
excerpt: !ruby/string:Sequel::SQL::Blob |-
  PHA+DQpJIHdhcyBub3RpbmcgdG8gYSBmcmllbmQgYSBmZXcgd2Vla3MgYWdv
  IHRoYXQgSSZyc3F1bztsbCBiZSBtYWtpbmcgYW4gYW5ub3VuY2VtZW50IHNo
  b3J0bHkgYWJvdXQgc29tZSBjaGFuZ2VzIGluIGRpcmVjdGlvbiBmb3IgQ29t
  bXVuaXR5IEJhbmR3aWR0aCBhbmQgeW91cnMgdHJ1bHkuIFRoZSBnaXN0IG9m
  IHRoZSBub3RlIHdhcyB0aGF0IEkgaGF2ZSByZW5ld2VkIG15IGNvbW1pdG1l
  bnQgdG8gYmVpbmcgImFncmVzc2l2ZWx5IHNtYWxsIiAodGhhbmtzIHRvIE1h
  cmsgU3VybWFuIGZvciB0aGF0IHBocmFzZSkgYW5kIGZvciBDb21tdW5pdHkg
  QmFuZHdpZHRoIHRoYXQgbWVhbnMgdGhhdCAyMDA2IGlzIGFsbCBhYm91dCBn
  ZXR0aW5nIHNtYWxsZXIuIE9mIGNvdXJzZSwgdGhpcyBmcmllbmQgYXNrZWQs
  ICJHZXR0aW5nIHNtYWxsZXI/IEhvdyBzbz8gVG8gd2hhdCBlbmQ/IiBBbmQg
  dGhpcyBpcyBiYXNpY2FsbHkgd2hhdCBJIHJlc3BvbmRlZDoNCjwvcD4=
mt_id: 1711

---

I'm wondering why it's having trouble with the excerpt? Any pointers appreciated.

Phillip.

jekyll 1.4.2
ruby 2.0.0
mysql 5.5.27
gem mysql-2.9.1
gem sequel-4.5.0

@parkr
Copy link
Member

parkr commented Dec 24, 2013

Which version of jekyll-import are you using?

@phillipadsmith
Copy link
Author

Looks like jekyll-import-0.1.0

@parkr
Copy link
Member

parkr commented Dec 25, 2013

Can you re-run the import into a test site after modifying your local installation of jekyll-import with #92's changes? Would have to be in lib/jekyll-import/importers/mt.rb rather than drupal6.rb.

@phillipadsmith
Copy link
Author

Added the change from #92 to mt.rb and get this error:

syck has been removed, psych is used instead

Output files still have the same problem.

@parkr
Copy link
Member

parkr commented Dec 26, 2013

Hm, ok. You can run gem pristine jekyll-import to get a clean version back. Would you try one more thing for me please?

Please change Line 107 of mt.rb to:

'excerpt' => encode(post[:entry_excerpt].to_s, options),

@phillipadsmith
Copy link
Author

@parkr That seems to have done the trick nicely! Many thanks for your patience and help on this today. Happy holidays! :)

@parkr
Copy link
Member

parkr commented Dec 26, 2013

Absolutely! Thanks for yours as well. Happy holidays :)

@parkr parkr closed this as completed in 1f2d971 Dec 26, 2013
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
antonizoon pushed a commit to antonizoon/jekyll-import that referenced this issue Jan 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants