diff --git a/THANKS b/THANKS index 2699c41..fc50f34 100644 --- a/THANKS +++ b/THANKS @@ -10,6 +10,7 @@ Eric van der Vlist - Filters to add language, category information Chris Dolan - mkdir cache; default template_dirs; fix xsltproc David Sifry - rss 2.0 xslt template based on http://atom.geekhood.net/ Morten Fredericksen - Support WordPress LinkManager OPML +Harry Fuecks - default item date to feed date This codebase represents a radical refactoring of Planet 2.0, which lists the following contributors: diff --git a/planet/spider.py b/planet/spider.py index be98353..fec376c 100644 --- a/planet/spider.py +++ b/planet/spider.py @@ -241,19 +241,24 @@ def spiderFeed(feed, only_if_new=0): # get updated-date either from the entry or the cache (default to now) mtime = None - entry['updated_parsed'] = reconstitute.entry_updated(data.feed, entry) - if entry['updated_parsed']: + if not entry.has_key('updated_parsed'): + if entry.has_key('published_parsed'): + entry['updated_parsed'] = entry['published_parsed'] + if not entry.has_key('updated_parsed'): try: mtime = calendar.timegm(entry.updated_parsed) - if mtime > time.time(): mtime = None except: pass if not mtime: try: mtime = os.stat(cache_file).st_mtime except: - mtime = time.time() - entry['updated_parsed'] = time.gmtime(mtime) + if data.feed.has_key('updated_parsed'): + mtime = calendar.timegm(data.feed.updated_parsed) + else: + mtime = time.time() + if mtime > time.time(): mtime = None + entry['updated_parsed'] = time.gmtime(mtime) # apply any filters xdoc = reconstitute.reconstitute(data, entry) diff --git a/themes/common/validate.html.xslt b/themes/common/validate.html.xslt new file mode 100644 index 0000000..efab5c6 --- /dev/null +++ b/themes/common/validate.html.xslt @@ -0,0 +1,146 @@ + + + + + + + + + <xsl:value-of select="atom:title"/> + + + + + + + + + + + + + + + + + + + + + + + + +
NameFormatNotes
+ + +
+ + + + + rss_0_90 + rss_0_91 + rss_0_91 + rss_1_0 + rss_0_90 + + rss_0_90 + rss_2_0 + rss_2_0 + + + atom_0_3 + atom_1_0 + atom_1_0 + + + + + + + + + #FCC + + + + + http://feedvalidator.org/check?url= + + + + + + + + + + + + + + http://www.validome.org/rss-atom/validate? + viewSourceCode=1&version= + + &url= + + + + + + + + + + + + + + + + + message + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ +
+ +
+