1
0
Fork 0

wordpress-xmlrpc: fix media html tags (again)

This commit is contained in:
Aleix Conchillo Flaque 2010-12-23 12:35:44 +01:00 committed by Andy Wingo
parent 2da5248073
commit 606ecad873

View file

@ -71,7 +71,7 @@ class MyHTMLParser(HTMLParser):
fp.close() fp.close()
def html_media_object(service, url): def html_media_object(service, url):
services = {"youtube" : '<object width="640" height="390"><param name="movie" value="%url%?fs=1&amp;hl=en_US"/><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"/><embed src="%url%?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"/>></object>', services = {"youtube" : '<object width="640" height="390"><param name="movie" value="%url%?fs=1&amp;hl=en_US"/><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"/><embed src="%url%?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"/></object>',
"googlevideo": '<object type="application/x-shockwave-flash" data="%url%" height="330" width="400"><param name="allowScriptAccess" value="never"/><param name="movie" value="%url%"/><param name="quality" value="best"/><param name="bgcolor" value="#ffffff"/><param name="scale" value="noScale"/><param name="wmode" value="opaque"/></object>'} "googlevideo": '<object type="application/x-shockwave-flash" data="%url%" height="330" width="400"><param name="allowScriptAccess" value="never"/><param name="movie" value="%url%"/><param name="quality" value="best"/><param name="bgcolor" value="#ffffff"/><param name="scale" value="noScale"/><param name="wmode" value="opaque"/></object>'}
html_center_start = '<p><span style="text-align: center; display: block;">' html_center_start = '<p><span style="text-align: center; display: block;">'
html_center_end = '</span></p>' html_center_end = '</span></p>'