Created
February 5, 2012 22:17
-
-
Save trojkat/1748168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
def parse(kwargs): | |
url = kwargs.get('adres') | |
width = kwargs.get('szerokosc', getattr(settings, 'SHORTCODES_MP3_WIDTH', 425)) | |
if url: | |
return '<embed type="application/x-shockwave-flash" flashvars="audioUrl=%s" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="%s" height="27" quality="best" wmode="opaque"></embed>' % (url, width) | |
else: | |
return '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment