Permalink
Browse files

add patch for older Blaze.io mobile "0000.jpg" screenshot.

git-svn-id: http://httparchive.googlecode.com/svn/trunk@1197 fc7d47d3-c008-acd5-f51f-d19787b8a02f
  • Loading branch information...
1 parent aa318e9 commit 73c01b25fd75119322a2f90bef13227a8427b0f5 stevesoudersorg@gmail.com committed May 1, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 frame.php
View
@@ -10,6 +10,7 @@
$gTime = getParam('t', '2500'); // milliseconds
$wptid = getParam('wptid');
$wptrun = getParam('wptrun');
+$gPageid = getParam('pageid');
$wptServer = wptServer();
$xmlurl = "{$wptServer}xmlResult.php?test=$wptid";
@@ -31,6 +32,10 @@
}
$f = "0000" . ($tbefore/100);
$f = substr($f, strlen($f)-4);
+if ( $gbMobile && "0000" == $f && $gPageid < 12217 ) {
+ // There's a bug in Blaze's WPT that calls the "0.0s" image "frame_0010.jpg" instead of "frame_0000.jpg" up until Oct 1, 2011.
+ $f = "0010";
+}
$imgUrl = "{$wptServer}thumbnail.php?test=$wptid&width=200&file=video_$wptrun/frame_$f.jpg";
header("Location: $imgUrl");
?>

0 comments on commit 73c01b2

Please sign in to comment.