fix outro frames in intro render

This commit is contained in:
derchris 2018-10-20 01:13:04 +02:00
parent bc79f2422d
commit 6bfaf0296d

View file

@ -7,7 +7,6 @@ import glob
import math
import shutil
import errno
import shutil
from lxml import etree
from xml.sax.saxutils import escape as xmlescape
import cssutils
@ -17,7 +16,7 @@ from urllib.request import urlopen
# Frames per second. Increasing this renders more frames, the avconf-statements would still need modifications
fps = 25
debug = False
debug = True
args = None
cssutils.ser.prefs.lineSeparator = ' '
@ -79,6 +78,9 @@ def rendertask(task):
if debug:
print("generating {0} from {1}".format(task.outfile, task.infile))
if not args.skip_frames and not 'only_rerender_frames_after' in task.parameters:
shutil.rmtree(os.path.join(task.workdir, '.frames'))
# make sure a .frames-directory exists in out workdir
ensurePathExists(os.path.join(task.workdir, '.frames'))
@ -127,7 +129,7 @@ def rendertask(task):
frameNr += 1
continue
else:
elif not skip_rendering:
cache[frame] = frameNr
# apply the replace-pairs to the input text, by finding the specified xml-elements by thier id and modify thier css-parameter the correct value