Add example inserts for froscon2019
This commit is contained in:
parent
f1da7544cb
commit
83190a2e55
2 changed files with 160 additions and 1 deletions
|
@ -6,6 +6,13 @@ from renderlib import *
|
|||
from easing import *
|
||||
import svg.path
|
||||
|
||||
|
||||
personmap = {
|
||||
}
|
||||
|
||||
taglinemap = {
|
||||
}
|
||||
|
||||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://programm.froscon.de/2019/schedule.xml'
|
||||
|
||||
|
@ -206,7 +213,8 @@ def tasks(queue, args, idlist, skiplist):
|
|||
continue
|
||||
|
||||
if (event['id'] in idlist or not idlist) and not 'intro' in skiplist:
|
||||
# generate a task description and put them into the queue
|
||||
# generate a task description and put them into the queue
|
||||
|
||||
queue.put(Rendertask(
|
||||
infile = 'intro.svg',
|
||||
outfile = str(event['id'])+".ts",
|
||||
|
@ -219,6 +227,27 @@ def tasks(queue, args, idlist, skiplist):
|
|||
}
|
||||
))
|
||||
|
||||
idx=0
|
||||
for idx, person in enumerate(persons(scheduleUrl, personmap, taglinemap, event['id'])):
|
||||
queue.put(Rendertask(
|
||||
infile = 'insert.svg',
|
||||
outfile = 'event_{}_person_{}.png'.format(str(event['id']), str(person['id'])),
|
||||
parameters = {
|
||||
'$PERSON': person['person'],
|
||||
'$TAGLINE': person['tagline'],
|
||||
}
|
||||
))
|
||||
|
||||
if idx > 0:
|
||||
queue.put(Rendertask(
|
||||
infile = 'insert.svg',
|
||||
outfile = 'event_{}_persons.png'.format(str(event['id'])),
|
||||
parameters = {
|
||||
'$PERSON': event['personnames'],
|
||||
'$TAGLINE': '',
|
||||
}
|
||||
))
|
||||
|
||||
if not 'outro' in skiplist:
|
||||
# place a task for the outro into the queue
|
||||
queue.put(Rendertask(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue