migrate to new Rendertask-Class
This commit is contained in:
parent
81b0c60fa6
commit
d11886698a
6 changed files with 100 additions and 87 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#!/usr/bin/python3
|
||||
|
||||
from renderlib import *
|
||||
import math
|
||||
|
||||
# URL to Schedule-XML
|
||||
|
@ -118,14 +118,14 @@ def debug():
|
|||
|
||||
def tasks(queue):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events():
|
||||
for event in events(scheduleUrl):
|
||||
|
||||
# generate a task description and put them into the queue
|
||||
queue.put((
|
||||
'intro.svg',
|
||||
str(event['id'])+".dv",
|
||||
introFrames,
|
||||
{
|
||||
queue.put(Rendertask(
|
||||
infile = 'intro.svg',
|
||||
outfile = str(event['id'])+".dv",
|
||||
sequence = introFrames,
|
||||
parameters = {
|
||||
'$id': event['id'],
|
||||
'$title': event['title'],
|
||||
'$subtitle': event['subtitle'],
|
||||
|
@ -134,15 +134,15 @@ def tasks(queue):
|
|||
))
|
||||
|
||||
# place a task for the outro into the queue
|
||||
queue.put((
|
||||
'outro.svg',
|
||||
'outro.dv',
|
||||
outroFrames
|
||||
queue.put(Rendertask(
|
||||
infile = 'outro.svg',
|
||||
outfile = 'outro.dv',
|
||||
sequence = outroFrames
|
||||
))
|
||||
|
||||
# place the pause-sequence into the queue
|
||||
queue.put((
|
||||
'pause.svg',
|
||||
'pause.dv',
|
||||
pauseFrames
|
||||
queue.put(Rendertask(
|
||||
infile = 'pause.svg',
|
||||
outfile = 'pause.dv',
|
||||
sequence = pauseFrames
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue