forked from 0x2620/pandora
add item key to layers
This commit is contained in:
parent
758c821d5a
commit
95e57d9ad3
3 changed files with 12 additions and 4 deletions
|
@ -498,6 +498,7 @@
|
|||
"id": "privatenotes",
|
||||
"title": "Private Notes",
|
||||
"canAddAnnotations": {"member": true, "friend": true, "staff": true, "admin": true},
|
||||
"item": "Note",
|
||||
"overlap": true,
|
||||
"private": true,
|
||||
"type": "text"
|
||||
|
@ -506,6 +507,7 @@
|
|||
"id": "publicnotes",
|
||||
"title": "Public Notes",
|
||||
"canAddAnnotations": {"member": true, "friend": true, "staff": true, "admin": true},
|
||||
"item": "Note",
|
||||
"overlap": true,
|
||||
"type": "text"
|
||||
},
|
||||
|
@ -515,6 +517,7 @@
|
|||
"canAddAnnotations": {"staff": true, "admin": true},
|
||||
"hasEvents": true,
|
||||
"hasPlaces": true,
|
||||
"item": "Subtitle",
|
||||
"overlay": true,
|
||||
"sort": [
|
||||
{"id": "words", "title": "Words", "type": "words"},
|
||||
|
|
|
@ -101,17 +101,17 @@ def update_sitemap(base_url):
|
|||
el.text = i.get('title')
|
||||
el = ET.SubElement(video, "video:thumbnail_loc")
|
||||
icon = settings.CONFIG['user']['ui']['icons'] == 'frames' and 'icon' or 'poster'
|
||||
el.text = absolute_url("%s/%s128.jpg" %(i.itemId, icon))
|
||||
el.text = absolute_url("%s/%s256.jpg" %(i.itemId, icon))
|
||||
description = i.get('description', i.get('summary', ''))
|
||||
if description:
|
||||
el = ET.SubElement(video, "video:description")
|
||||
el.text = i.get('description', i.get('summary', ''))
|
||||
el = ET.SubElement(video, "video:family_friendly")
|
||||
el.text = 'Yes'
|
||||
duration = i.get('duration')
|
||||
if duration:
|
||||
duration = i.sort.duration
|
||||
if duration > 0:
|
||||
el = ET.SubElement(video, "video:duration")
|
||||
el.text = "%s" % duration
|
||||
el.text = "%s" % int(duration)
|
||||
|
||||
with open(sitemap[:-3], 'wb') as f:
|
||||
f.write('<?xml version="1.0" encoding="UTF-8"?>\n' + ET.tostring(urlset))
|
||||
|
|
|
@ -405,6 +405,7 @@
|
|||
"id": "places",
|
||||
"title": "Places",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Place",
|
||||
"overlap": true,
|
||||
"type": "place"
|
||||
},
|
||||
|
@ -412,6 +413,7 @@
|
|||
"id": "events",
|
||||
"title": "Events",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Event",
|
||||
"overlap": true,
|
||||
"type": "event"
|
||||
},
|
||||
|
@ -419,6 +421,7 @@
|
|||
"id": "keywords",
|
||||
"title": "Keywords",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Keyword",
|
||||
"overlap": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -426,6 +429,7 @@
|
|||
"id": "descriptions",
|
||||
"title": "Descriptions",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Description",
|
||||
"overlay": true,
|
||||
"type": "text"
|
||||
},
|
||||
|
@ -433,6 +437,7 @@
|
|||
"id": "transcripts",
|
||||
"title": "Transcripts",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Transcript",
|
||||
"overlay": true,
|
||||
"type": "text"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue