Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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