aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command/import_wordpress.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
commitaca2787b50094a4ab1f17162aa92c5263858743e (patch)
treec227d3a22fe454f92162d8d91ecb81f3141ace94 /nikola/plugins/command/import_wordpress.py
parent78e717290e125cab92aef712f12ae63fedb4070f (diff)
parent942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (diff)
Update upstream source from tag 'upstream/8.2.0'
Update to upstream version '8.2.0' with Debian dir 65d01d7d78d6b41c0be6eb196ed84354526f9384
Diffstat (limited to 'nikola/plugins/command/import_wordpress.py')
-rw-r--r--nikola/plugins/command/import_wordpress.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nikola/plugins/command/import_wordpress.py b/nikola/plugins/command/import_wordpress.py
index 06e00a1..f513e1c 100644
--- a/nikola/plugins/command/import_wordpress.py
+++ b/nikola/plugins/command/import_wordpress.py
@@ -582,6 +582,11 @@ to
def add(our_key, wp_key, is_int=False, ignore_zero=False, is_float=False):
if wp_key in image_meta:
value = image_meta[wp_key]
+ if value in ("", b"") and (is_int or is_float):
+ if ignore_zero:
+ return
+ else:
+ dst_meta[our_key] = 0
if is_int:
value = int(value)
if ignore_zero and value == 0: