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="" width="%s" height="27" quality="best" wmode="opaque"></embed>' % (url, width)
return ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment