forked from 0x2620/pandora
use item_description in sitemap.xml
This commit is contained in:
parent
7b32cfbf5b
commit
adff8d22e3
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ def update_sitemap(base_url):
|
||||||
description = i.get_item_description()
|
description = i.get_item_description()
|
||||||
if description:
|
if description:
|
||||||
el = ET.SubElement(video, "video:description")
|
el = ET.SubElement(video, "video:description")
|
||||||
el.text = i.get('description', i.get('summary', ''))
|
el.text = description
|
||||||
el = ET.SubElement(video, "video:family_friendly")
|
el = ET.SubElement(video, "video:family_friendly")
|
||||||
el.text = 'Yes'
|
el.text = 'Yes'
|
||||||
duration = i.sort.duration
|
duration = i.sort.duration
|
||||||
|
|
Loading…
Reference in a new issue