diff src/plugins/plugin_blog_import.py @ 1844:489b968b3723

plugin blog_import_dokuwiki: also uses the generic image uploader from blog_import (when media_repo is empty and OPT_UPLOAD_IMAGES is True)
author souliane <souliane@mailoo.org>
date Thu, 04 Feb 2016 18:56:53 +0100
parents cdecf553e051
children 569c48e4cf0d
line wrap: on
line diff
--- a/src/plugins/plugin_blog_import.py	Thu Feb 04 17:37:33 2016 +0100
+++ b/src/plugins/plugin_blog_import.py	Thu Feb 04 18:56:53 2016 +0100
@@ -281,6 +281,7 @@
 
         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: