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