Example #1
0
def magicembed(value, arg=None):
    '''value is the url and arg the size tuple
    ussage: {% http://myurl.com/|magicembed:"640x480" %}'''
    arg = [int(item) for item in arg.split('x')]
    provider = get_provider(value, arg)
    return provider.render_video()
Example #2
0
def magicembed(value, arg=None):
    '''value is the url and arg the size tuple
    ussage: {% http://myurl.com/|magicembed:"640x480" %}'''
    arg = [int(item) for item in arg.split('x')]
    provider = get_provider(value, arg)
    return provider.render_video()
Example #3
0
def magicthumbnail(value):
    '''value is the url and arg the link_to another url
    ussage: {% http://myurl.com/|magicthumbnail: '/some/url' %}'''
    provider = get_provider(value)
    return provider.render_thumbnail()
Example #4
0
def magicthumbnail(value):
    '''value is the url and arg the link_to another url
    ussage: {% http://myurl.com/|magicthumbnail: '/some/url' %}'''
    provider = get_provider(value)
    return provider.render_thumbnail()