

def render(self, name, value='', attrs=None, size=(420, 315)):
    '\n        :type name: str\n        :type attrs: dict\n        '
    output = super(AdminVideoWidget, self).render(name, value, attrs)
    if (not value):
        return output
    try:
        backend = detect_backend(value)
        return mark_safe(self.output_format.format(video=backend.get_embed_code(*size), input=output))
    except (UnknownBackendException, VideoDoesntExistException):
        return output

dataset/ETHPy150Open yetty/django-embed-video/embed_video/admin.py AdminVideoWidget.render/original