From 90d8d466033f6bbe66933cfa38ca47538af905dc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 22 Oct 2015 00:11:44 +0200 Subject: [PATCH] update sitemap video namespace --- pandora/item/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/item/tasks.py b/pandora/item/tasks.py index 4f4362be..a019a4e1 100644 --- a/pandora/item/tasks.py +++ b/pandora/item/tasks.py @@ -100,7 +100,7 @@ def update_sitemap(base_url): urlset.attrib['xmlns'] = "http://www.sitemaps.org/schemas/sitemap/0.9" urlset.attrib['xmlns:xsi'] = "http://www.w3.org/2001/XMLSchema-instance" urlset.attrib['xsi:schemaLocation'] = "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" - urlset.attrib['xmlns:video']= "http://www.google.com/schemas/sitemap-video/1.0" + urlset.attrib['xmlns:video']= "http://www.google.com/schemas/sitemap-video/1.1" url = ET.SubElement(urlset, "url") loc = ET.SubElement(url, "loc") @@ -162,6 +162,8 @@ def update_sitemap(base_url): if duration > 0: el = ET.SubElement(video, "video:duration") el.text = "%s" % int(duration) + el = ET.SubElement(video, "video:live") + el.text = "no" if Text.objects.filter(name='').exclude(text='').exists(): t = Text.objects.filter(name='')[0]