正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -70,7 +70,7 @@ class EditVideoMp4 extends Command | @@ -70,7 +70,7 @@ class EditVideoMp4 extends Command | ||
| 70 | */ | 70 | */ |
| 71 | public function getVideoSrc($html){ | 71 | public function getVideoSrc($html){ |
| 72 | $videoArr = []; | 72 | $videoArr = []; |
| 73 | - $pattern = '/<video.*?src=[\'"]([^\'"]+)[\'"].*?>/i'; | 73 | + $pattern = '/<img.*?src=[\'"]([^\'"]+)[\'"].*?>/i'; |
| 74 | preg_match_all($pattern, $html, $matches); | 74 | preg_match_all($pattern, $html, $matches); |
| 75 | $srcLinks = $matches[1]; | 75 | $srcLinks = $matches[1]; |
| 76 | foreach ($srcLinks as $link) { | 76 | foreach ($srcLinks as $link) { |
-
请 注册 或 登录 后发表评论