use nodename as name
This commit is contained in:
parent
3841a67a79
commit
3d95161942
1 changed files with 5 additions and 2 deletions
|
@ -72,14 +72,16 @@ class Engine:
|
||||||
def update(self):
|
def update(self):
|
||||||
# Get all storylines with tags
|
# Get all storylines with tags
|
||||||
storylines = [{
|
storylines = [{
|
||||||
|
'id': entity['id'],
|
||||||
'name': entity['name'],
|
'name': entity['name'],
|
||||||
|
'nodename': entity['nodename'],
|
||||||
'tags': entity['tags']
|
'tags': entity['tags']
|
||||||
} for entity in self.pandora.find_entities({
|
} for entity in self.pandora.find_entities({
|
||||||
'conditions': [
|
'conditions': [
|
||||||
{'key': 'type', 'operator': '==', 'value': 'storylines'},
|
{'key': 'type', 'operator': '==', 'value': 'storylines'},
|
||||||
],
|
],
|
||||||
'operator': '&'
|
'operator': '&'
|
||||||
}, ['id', 'name', 'tags']) if entity.get('tags', [])]
|
}, ['id', 'name', 'tags', 'nodename']) if entity.get('tags', [])]
|
||||||
# Get list of storyline names
|
# Get list of storyline names
|
||||||
names = list(set([storyline['name'] for storyline in storylines]))
|
names = list(set([storyline['name'] for storyline in storylines]))
|
||||||
# Get all clips annotated with storyline references
|
# Get all clips annotated with storyline references
|
||||||
|
@ -114,7 +116,8 @@ class Engine:
|
||||||
)
|
)
|
||||||
# Get and cache playlists
|
# Get and cache playlists
|
||||||
self.playlists = [playlist for playlist in [{
|
self.playlists = [playlist for playlist in [{
|
||||||
'name': storyline['name'],
|
'id': storyline['id'],
|
||||||
|
'name': storyline['nodename'],
|
||||||
'tags': storyline['tags'],
|
'tags': storyline['tags'],
|
||||||
'clips': [{
|
'clips': [{
|
||||||
'id': clip['id'],
|
'id': clip['id'],
|
||||||
|
|
Loading…
Reference in a new issue