2013-01-04 2 views
0

피드의 채널/헤더 섹션에서을 사용하거나 SimplePie를 사용하여 YouTube RSS 재생 목록 또는 기타 요소/속성의 totalResults를 얻는 방법은 무엇입니까?WordPress의 SimplePie를 사용하여 피드의 채널에서 요소를 가져 옵니까?

예 재생 목록 : http://gdata.youtube.com/feeds/api/playlists/PL25BD62C6275E88F6?alt=rss

이 작동하지 않습니다

$totalResults = $rss->get_channel_tags('http://a9.com/-/spec/opensearchrss/1.0/', 'totalResults'); 
$totalResultsData = $totalResults[0]; 

답변

0

나는 그것이 작동하지 않았다,하지만 난 아톰을 사용하는 경우는 기능 get_feed_tags와 함께 작동 공급().

이 작동 :

재생 목록 : http://gdata.youtube.com/feeds/api/playlists/PL25BD62C6275E88F6?alt=atom

$totalResults = $rss->get_feed_tags('http://a9.com/-/spec/opensearch/1.1/', 'totalResults'); 
$totalResultsData = $totalResults[0]['data']; 
(당신은 기본적으로 사용되기 때문에 고도 = 원자 매개 변수를 삭제할 수 있습니까?)
관련 문제