1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-13 05:43:37 -04:00

Fix for recent change in Google Video

This commit is contained in:
Miciah Dashiel Butler Masters 2006-03-12 19:11:26 +00:00 committed by Miciah Dashiel Butler Masters
parent d7a964efaf
commit ca312b7d90

View File

@ -5,9 +5,9 @@ function load_google_video(cached, vs) {
if (!cached.uri.match(/^http:\/\/video.google.com\/videoplay/))
return true;
var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&.*?<\/object>)/;
var re = /(?:videoUrl(?:\\u003d|=))(.*?)\&/;
var match = cached.content.match(re);
var url = unescape(match[2]);
var url = unescape(match[1]);
var meta = '<meta http-equiv="refresh" content="1; url=' + url + '" />';
cached.content = cached.content.replace(/<head>/, "<head>" + meta);