Merge pull request #63 from cmstrickland/wp-import-since

optional 'since' handling in WP import plugin
This commit is contained in:
Brit Butler 2014-10-26 19:16:00 -04:00
commit 8e464ed762

View file

@ -58,7 +58,8 @@
(ensure-directories-exist (or output (repo *config*))) (ensure-directories-exist (or output (repo *config*)))
(let* ((xml (cxml:parse-file filepath (cxml-dom:make-dom-builder))) (let* ((xml (cxml:parse-file filepath (cxml-dom:make-dom-builder)))
(posts (dom:get-elements-by-tag-name xml "item"))) (posts (dom:get-elements-by-tag-name xml "item")))
(loop for post across posts do (import-post post output since)) (loop for post across posts do (if since (import-post post output since)
(import-post post output)))
(delete-file filepath)))) (delete-file filepath))))
(defun enable (&key filepath output) (defun enable (&key filepath output)