forked from 0x2620/pandora
fix oembed embed url
This commit is contained in:
parent
b270424a14
commit
9db360774e
1 changed files with 1 additions and 2 deletions
|
@ -1104,8 +1104,7 @@ def oembed(request):
|
||||||
itemId = parts[1]
|
itemId = parts[1]
|
||||||
#fixme: embed should reflect actuall url
|
#fixme: embed should reflect actuall url
|
||||||
item = get_object_or_404_json(models.Item, itemId=itemId)
|
item = get_object_or_404_json(models.Item, itemId=itemId)
|
||||||
embed_url = request.build_absolute_uri('/%s/embed' % item.itemId)
|
embed_url = request.build_absolute_uri('/%s#embed' % item.itemId)
|
||||||
embed_url = '%s#?embed=true' % url
|
|
||||||
oembed = {}
|
oembed = {}
|
||||||
oembed['version'] = '1.0'
|
oembed['version'] = '1.0'
|
||||||
oembed['type'] = 'video'
|
oembed['type'] = 'video'
|
||||||
|
|
Loading…
Reference in a new issue