posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

Fixed Wordpress import when importing WXR files above version 1.1. #187

Closed geekman closed 10 years ago

geekman commented 10 years ago

When the WXR version is >1.1, the first loop iteration will try with a non-existent wpns and item.find('%spost_type' % wpns) is None, hence .text will raise an exception.

The WXR that I exported has all types of items, hence it's more flexible to assign the post type, then filter for post and page types later.

posativ commented 10 years ago

Looks good, thanks.