Authored by whb

视频配置

@@ -58,9 +58,11 @@ @@ -58,9 +58,11 @@
58 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.test\.yoho\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches2); 58 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.test\.yoho\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches2);
59 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches3); 59 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches3);
60 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches); 60 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches);
  61 + @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/rescdn\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches2);
61 $videoMatches1 = array_filter($videoMatches1); 62 $videoMatches1 = array_filter($videoMatches1);
62 $videoMatches2 = array_filter($videoMatches2); 63 $videoMatches2 = array_filter($videoMatches2);
63 $videoMatches3 = array_filter($videoMatches3); 64 $videoMatches3 = array_filter($videoMatches3);
  65 + $boysVideoMatches = empty($boysVideoMatches) ? $boysVideoMatches:$boysVideoMatches2;
64 if(!empty($videoMatches1)) 66 if(!empty($videoMatches1))
65 { 67 {
66 $temps = $videoMatches1; 68 $temps = $videoMatches1;
@@ -38,9 +38,11 @@ @@ -38,9 +38,11 @@
38 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.test\.yoho\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches2); 38 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.test\.yoho\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches2);
39 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches3); 39 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $videoHtml, $videoMatches3);
40 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches); 40 @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches);
41 - $videoMatches1 = array_filter($videoMatches1); 41 + @preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/rescdn\.yohoboys\.com\/res\/www\/swf\/util\/VideoPlayerNew\.swf\?url=(.+\.mp4|.+)&title1=*&shareurl=*&coverpic=(.+)\"@i", $videoHtml, $boysVideoMatches2);
  42 + $videoMatches1 = array_filter($videoMatches1);
42 $videoMatches2 = array_filter($videoMatches2); 43 $videoMatches2 = array_filter($videoMatches2);
43 $videoMatches3 = array_filter($videoMatches3); 44 $videoMatches3 = array_filter($videoMatches3);
  45 + $boysVideoMatches = empty($boysVideoMatches) ? $boysVideoMatches:$boysVideoMatches2;
44 if(!empty($videoMatches1)) 46 if(!empty($videoMatches1))
45 { 47 {
46 $temps = $videoMatches1; 48 $temps = $videoMatches1;