ahmadfaizalbh / ahmadfaizalbh/django-oembed

"type" : "link" in json and link.html

未关闭
#15 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
auto-migrated Priority-Medium Type-Defect
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

```
What steps will reproduce the problem?
1. Use a twitter status or wikipedia article link with oembed tag

What is the expected output? What do you see instead?

oohembed returns that json for a status link :
{
"title":
"ええい誰かnobotterを108で止めるテクニシャンはおらんのか��
�",
"author_name": "maicos",
"thumbnail_width": 48,
"version": "1.0",
"author_url": "http://friendfeed.com/maicos",
"provider_name": "Twitter Status",
"thumbnail_url":
"http://a1.twimg.com/profile_images/592980418/parman_ribbon2_normal.png",
"type": "link",
"thumbnail_height": 48
}

and in

File "/usr/local/lib/python2.6/dist-packages/oembed/core.py", line 162, in
replace replacement = render_to_string('oembed/%s.html' % resp['type'],
{'response': resp})

tries to find link.html and fails
```

Original issue reported on code.google.com by `hamdiakoguz@gmail.com` on 11 Jan 2010 at 1:10

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。