Skip to content
Permalink
Browse files

Merge pull request #2282 from getnikola/fix-wordpress-attachment-writing

Fixing #2264.
  • Loading branch information
Kwpolska committed Mar 6, 2016
2 parents f347e37 + d6dbf14 commit db9672ab5b2d0a7ba75278f5d695ea883ef0db58
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/command/import_wordpress.py
@@ -562,8 +562,8 @@ def add(our_key, wp_key, is_int=False, ignore_zero=False, is_float=False):
meta = {}
meta['size'] = size.decode('utf-8')
if width_key in metadata[size_key][size] and height_key in metadata[size_key][size]:
meta['width'] = metadata[size_key][size][width_key]
meta['height'] = metadata[size_key][size][height_key]
meta['width'] = int(metadata[size_key][size][width_key])
meta['height'] = int(metadata[size_key][size][height_key])

path = urlparse(url).path
dst_path = os.path.join(*([self.output_folder, 'files'] + list(path.split('/'))))

0 comments on commit db9672a

Please sign in to comment.
You can’t perform that action at this time.