Permalink
Browse files

fix many replace player_config

  • Loading branch information...
1 parent 00d393a commit 0a98e91d5b30e5282ad90cfedcf0162ce290a0e9 @TigorC committed Dec 12, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 flowplayer/templatetags/flowplayer_tags.py
@@ -33,17 +33,16 @@ def __init__(self, media, player_class, player_id=None):
else:
self.player_url = "%sflowplayer/FlowPlayerLight.swf" % (settings.MEDIA_URL)
+ def render(self, context):
# Import the configuration settings to set on the player output
# Configuration is defined in the settings (multiple types of player)
if 'default' in settings.FLOWPLAYER_CONFIG:
self.player_config = settings.FLOWPLAYER_CONFIG['default']
else:
self.player_config = dict()
- if player_class in settings.FLOWPLAYER_CONFIG:
- self.player_config.update(settings.FLOWPLAYER_CONFIG[player_class])
-
- def render(self, context):
+ if self.player_class in settings.FLOWPLAYER_CONFIG:
+ self.player_config.update(settings.FLOWPLAYER_CONFIG[self.player_class])
if 'flowplayer_iterator' in context:
context['flowplayer_iterator'] += 1

0 comments on commit 0a98e91

Please sign in to comment.