+2012-09-04 Kevin Rosenberg <kevin@rosenberg.net>
+ * Version 0.9.1
+ * main.lisp: Patch from Maxim Velesyik fixing errors parsing CNN
+ feed.
+
2012-09-04 Kevin Rosenberg <kevin@rosenberg.net>
* Version 0.9.0
* Commit patch from Rupert Swarbrick: Parse RSS version 2 and
+cl-rss (0.9.1-1) unstable; urgency=low
+
+ * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org> Thu, 18 Jun 2015 17:43:36 -0600
+
cl-rss (0.9.0-2) unstable; urgency=low
* Switch to dpkg-source 3.0 (quilt) format
throwing an error if it was already set, or if they aren't a string. Used for
elements like <title> and <link>, which shouldn't crop up twice."
(let ((string (car (xmls:xmlrep-children node))))
- (unless (stringp string)
- (error 'rss-parse-error
- :msg (format nil "Got ~A when expecting string for contents of <~A>"
- string name)))
- (setf-unique-slot object name string)))
+ ;; skip empty nodes
+ (when string
+ (progn
+ (unless (stringp string)
+ (error 'rss-parse-error
+ :msg (format nil "Got ~A when expecting string for contents of <~A>"
+ string name)))
+ (setf-unique-slot object name string)))))
(defun ensure-string-slots-filled (object required-slots strict?)
"For each slot in REQUIRED-SLOTS, if it is unbound in OBJECT, set it to the
the XML node we just got."
`(defun ,name (node object strict?)
(declare (ignorable strict?))
+ ;; skip atom-related tags
+ (when (equalp "http://www.w3.org/2005/Atom" (xmls:node-ns node))
+ (return-from ,name nil))
(string=-case (xmls:xmlrep-tag node)
(,@(mapcar
(lambda (sym) `(,(symbol-to-name sym)