mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1003 from russkel/tumblrfix
fix missing 'kind' arg in tumblr importer
This commit is contained in:
commit
8c4b2a0d2e
1 changed files with 3 additions and 2 deletions
|
|
@ -400,8 +400,9 @@ def tumblr2fields(api_key, blogname):
|
|||
content = '<p><a href="%s" rel="external nofollow">%s</a>: %s</p>\n%s' % (post.get('asking_name'), post.get('asking_url'), post.get('question'), post.get('answer'))
|
||||
|
||||
content = content.rstrip() + '\n'
|
||||
|
||||
yield (title, content, slug, date, post.get('blog_name'), [type], tags, format)
|
||||
kind = 'article'
|
||||
yield (title, content, slug, date, post.get('blog_name'), [type],
|
||||
tags, kind, format)
|
||||
|
||||
offset += len(posts)
|
||||
posts = get_tumblr_posts(api_key, blogname, offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue