trim titles and map extra long titles
This commit is contained in:
parent
eb6ca156c4
commit
a47db07d6d
1 changed files with 8 additions and 1 deletions
|
@ -7,8 +7,15 @@ from renderlib import *
|
||||||
# URL to Schedule-XML
|
# URL to Schedule-XML
|
||||||
scheduleUrl = 'http://fahrplan.mrmcd.net/schedule.xml'
|
scheduleUrl = 'http://fahrplan.mrmcd.net/schedule.xml'
|
||||||
|
|
||||||
|
# For (really) too long titles
|
||||||
|
titlemap = {
|
||||||
|
5985: 'Dem Stromnetz auf die Finger geguckt',
|
||||||
|
}
|
||||||
|
|
||||||
def introFrames(parameters):
|
def introFrames(parameters):
|
||||||
title = parameters['$title']
|
id = parameters['$id']
|
||||||
|
title = titlemap[id] if id in titlemap else parameters['$title'].strip()
|
||||||
|
|
||||||
rnd = random.Random()
|
rnd = random.Random()
|
||||||
rnd.seed(title)
|
rnd.seed(title)
|
||||||
frames = 0
|
frames = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue