plugin blog_import_dokuwiki: also uses the generic image uploader from blog_import (when media_repo is empty and OPT_UPLOAD_IMAGES is True)
This commit is contained in:
parent
657c234406
commit
7f2d6e56c7
1 changed files with 16 additions and 12 deletions
|
|
@ -281,6 +281,7 @@ class BlogImportPlugin(object):
|
|||
|
||||
tmp_dir = tempfile.mkdtemp()
|
||||
try:
|
||||
# TODO: would be nice to also update the hyperlinks to these images, e.g. when you have <a href="{url}"><img src="{url}"></a>
|
||||
for img_elt in xml_tools.findAll(top_elt, ['img']):
|
||||
yield self.imgFilters(client, img_elt, options, opt_host, tmp_dir)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Reference in a new issue