Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
missing else for celery
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Nov 17, 2011
1 parent 585d2d1 commit fb855ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions video/cms_plugins.py
Expand Up @@ -100,7 +100,9 @@ def render(self, context, instance, placeholder):
if version.status != "encoding":

if getattr(settings, "USE_CELERY_FOR_VIDEO_ENCODING", None):
print "** launching encodevideo()"
encodevideo.delay(source = instance.video, size = size, codec = codec)
else:
thread = Thread(target=version.encode, name=videofilepath)
thread.start()

Expand All @@ -111,6 +113,7 @@ def render(self, context, instance, placeholder):

if getattr(settings, "USE_CELERY_FOR_VIDEO_ENCODING", None):
encodevideo.delay(source = instance.video, size = size, codec = codec)
print "** launching encodevideo()"
else:
thread = Thread(target=version.encode, name=videofilepath)
thread.start()
Expand Down

0 comments on commit fb855ad

Please sign in to comment.