Skip to content

Instantly share code, notes, and snippets.

@trojkat
Created February 5, 2012 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trojkat/1748168 to your computer and use it in GitHub Desktop.
Save trojkat/1748168 to your computer and use it in GitHub Desktop.
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