forked from 0x2620/pandora
only include video metadata for rendered items (sitemap.xml)
This commit is contained in:
parent
dd8eef3ee5
commit
9d6a29a4f4
1 changed files with 21 additions and 20 deletions
|
@ -141,6 +141,7 @@ def update_sitemap(base_url):
|
||||||
# priority of page on site values 0.1 - 1.0
|
# priority of page on site values 0.1 - 1.0
|
||||||
priority = ET.SubElement(url, "priority")
|
priority = ET.SubElement(url, "priority")
|
||||||
priority.text = '1.0'
|
priority.text = '1.0'
|
||||||
|
if i.rendered:
|
||||||
video = ET.SubElement(url, "video:video")
|
video = ET.SubElement(url, "video:video")
|
||||||
#el = ET.SubElement(video, "video:content_loc")
|
#el = ET.SubElement(video, "video:content_loc")
|
||||||
#el.text = absolute_url("%s/video" % i.itemId)
|
#el.text = absolute_url("%s/video" % i.itemId)
|
||||||
|
|
Loading…
Reference in a new issue