|
|
|
@ -110,7 +110,7 @@ Class ApiController extends SiteController {
@@ -110,7 +110,7 @@ Class ApiController extends SiteController {
|
|
|
|
|
$done = true; |
|
|
|
|
$newVideo = array(); |
|
|
|
|
|
|
|
|
|
preg_match("/https:\/\/[\w\.]+\/\w+/i", $content, $matches); |
|
|
|
|
preg_match("/https:\/\/[\w\.]+(\/\w+){1,}\/?/i", $content, $matches); |
|
|
|
|
if (!empty($matches)) { |
|
|
|
|
$newVideo['url'] = $matches[0]; |
|
|
|
|
$done = $done && $this->saveBotTask($newVideo['url']); |
|
|
|
|