diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index a5711b31..e3599f0e 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -126,6 +126,9 @@ def wp2fields(xml): content = item.find('encoded').string filename = item.find('post_name').string + if filename is None: + filename = item.find('post_id').string + raw_date = item.find('post_date').string date_object = time.strptime(raw_date, "%Y-%m-%d %H:%M:%S") date = time.strftime("%Y-%m-%d %H:%M", date_object)