From d31ce9e7596bcd93010147c8273ee5161bbf91e5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 13 Aug 2010 14:58:15 +0200 Subject: [PATCH] add iframe embed --- ox/web/youtube.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ox/web/youtube.py b/ox/web/youtube.py index 7d30d96..4f6ec1f 100644 --- a/ox/web/youtube.py +++ b/ox/web/youtube.py @@ -70,7 +70,9 @@ def getInfoFromAtom(entry, video_url_base=None): info['mp4'] = getVideoUrl(info['id'], 'mp4') info['720p'] = getVideoUrl(info['id'], '720p') info['1080p'] = getVideoUrl(info['id'], '1080p') - info['embed'] = '' % (info['id'], info['id']) + info['embed_flash'] = '' % (info['id'], info['id']) + info['embed'] = '' % info['id'] + return info def find(query, max_results=10, offset=1, orderBy='relevance', video_url_base=None):