Merge pull request #63 from cmstrickland/wp-import-since
optional 'since' handling in WP import plugin
This commit is contained in:
commit
8e464ed762
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue