only include video metadata for rendered items (sitemap.xml)

This commit is contained in:
j 2014-01-17 17:59:45 +00:00
parent dd8eef3ee5
commit 9d6a29a4f4

View file

@ -141,6 +141,7 @@ def update_sitemap(base_url):
# priority of page on site values 0.1 - 1.0
priority = ET.SubElement(url, "priority")
priority.text = '1.0'
if i.rendered:
video = ET.SubElement(url, "video:video")
#el = ET.SubElement(video, "video:content_loc")
#el.text = absolute_url("%s/video" % i.itemId)