From 9db360774ee6cbfb915daf2d129bf824db9888b8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 21 Oct 2013 11:52:59 +0200 Subject: [PATCH] fix oembed embed url --- pandora/item/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index f40fc911..a92b1e78 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -1104,8 +1104,7 @@ def oembed(request): itemId = parts[1] #fixme: embed should reflect actuall url item = get_object_or_404_json(models.Item, itemId=itemId) - embed_url = request.build_absolute_uri('/%s/embed' % item.itemId) - embed_url = '%s#?embed=true' % url + embed_url = request.build_absolute_uri('/%s#embed' % item.itemId) oembed = {} oembed['version'] = '1.0' oembed['type'] = 'video'