Привет, может ли кто-нибудь помочь мне с правильным способом получения изображения default.jpg для каждого видео с каналов, которые я загружаю?
<?php
$url = 'http://gdata.youtube.com/feeds/api/users/utahblaze/uploads?orderby=updated&max-results=8';
$xml = simplexml_load_file($url);
foreach ($xml->entry as $entry) :
$kids = $entry->children('http://search.yahoo.com/mrss/');
$attributes = $kids->group->content[0]->attributes();
$flv = $attributes['url'];
$attributes = $kids->group->player->attributes();
$link = $attributes['url'];
?>
<a href="<?=$link?>">test</a?
<?php endforeach; ?>