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