From 429ad574c18eaf1edfb8d1b24b0da277a06075b7 Mon Sep 17 00:00:00 2001 From: atze Date: Thu, 28 May 2015 18:13:39 +0200 Subject: [PATCH] release version of camp99 intros/outro --- camp1999/__init__.py | 22 ++++++++++++++++++++-- camp1999/artwork/intro.svg | 8 ++++---- camp1999/artwork/outro.svg | 8 ++++---- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/camp1999/__init__.py b/camp1999/__init__.py index 5814392..c1ee07e 100644 --- a/camp1999/__init__.py +++ b/camp1999/__init__.py @@ -2,6 +2,10 @@ from renderlib import * +# URL to Schedule-XML +scheduleUrl = 'http://annaberg6.de/stuff/camp99/schedule.xml' + + def introFrames(p): move=50 @@ -67,8 +71,22 @@ def debug(): outroFrames ) -def tasks(queue): - raise NotImplementedError('call with --debug to render your intro/outro') +def tasks(queue, args): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl): + + queue.put(Rendertask( + infile = 'intro.svg', + outfile = str(event['id'])+".dv", + sequence = introFrames, + parameters = { + '$id': event['id'], + '$title': event['title'], + '$subtitle': event['subtitle'], + '$personnames': event['personnames'], + '$person': event['personnames'] + } + )) def ticket(ticket): diff --git a/camp1999/artwork/intro.svg b/camp1999/artwork/intro.svg index cd6291c..b229d7b 100644 --- a/camp1999/artwork/intro.svg +++ b/camp1999/artwork/intro.svg @@ -78,14 +78,14 @@ y="476.36218" x="222" id="image3818" - xlink:href="file:///home/peter/AAA-VOC/intro-outro-generator/camp1999/artwork/no-rocket.gif" + xlink:href="file:///home/git/intro-generator/camp1999/artwork/no-rocket.gif" height="170" width="580" /> @@ -127,6 +127,6 @@ id="tspan3781" x="381.5" y="840.86218" - style="font-size:72px;font-style:normal;fill:#ffffff;fill-opacity:1;font-family:Minecraftia;-inkscape-font-specification:Minecraftia">1999!!! + style="font-size:72px;font-style:normal;fill:#ffffff;fill-opacity:1;font-family:Minecraftia;-inkscape-font-specification:Minecraftia">cccamp_1999 diff --git a/camp1999/artwork/outro.svg b/camp1999/artwork/outro.svg index 27ea0eb..7726ccf 100644 --- a/camp1999/artwork/outro.svg +++ b/camp1999/artwork/outro.svg @@ -78,14 +78,14 @@ y="476.36218" x="222" id="image3818" - xlink:href="file:///home/peter/AAA-VOC/intro-outro-generator/camp1999/artwork/no-rocket.gif" + xlink:href="file:///home/git/intro-generator/camp1999/artwork/no-rocket.gif" height="170" width="580" /> THE END!!! + style="font-size:72px;font-style:normal;fill:#ffffff;fill-opacity:1;font-family:Minecraftia;-inkscape-font-specification:Minecraftia">Licensed to the public under CC-BY-SA 3.0