Browse Source

url match improved

master
filesite 1 year ago
parent
commit
d53b365fa7
  1. 2
      themes/tajian/controller/ApiController.php

2
themes/tajian/controller/ApiController.php

@ -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']);

Loading…
Cancel
Save