preg_match_all('/https:\/\/(\S*)\/(\S*)\//m', $text, $matches, PREG_SET_ORDER, 0);
if(!empty($matches)){
$index = $matches[0][2];
}
$tmp = explode('/', $url);
$connection = Main\Application::getConnection();
$connection->query($sql);
videos = VideoItems.objects.filter(publ = True).order_by('-publish_date')