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:
parent
d7a964efaf
commit
ca312b7d90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user