2011-04-14 1 views

답변

0

어쩌면 이렇게 될까요?

try { 
     //do stuff with the video 
    } 
    catch(Zend_Gdata_App_Exception $e) { 
     next; 
    } 
    catch(Zend_Gdata_App_HttpException $httpException) { 
     next; 
    } 
} 
+0

이해가 안됨 : 동영상이 UNLISTED 상태에 있고이를 찾는 방법을 찾을 수 없는지 알아야합니다. – Andrea

1

나는 같은 시점에서 고민했다. 하지만 "공개"또는 "비공개"는 다음과 같이 구분할 수있었습니다. 당신이 6 인덱스 5 변화에 대한 올바른 데이터를 얻을 수없는 경우

$videostatus = $videoEntry->extensionElements[6]->extensionAttributes[permission][value]; 

if($videostatus == 'allowed'){ 
    $videostatus = 'public'; 
}elseif($videostatus == 'denied'){ 
    $videostatus = 'unlisted'; 
} 
-1

어쩌면

$permission = $video->extensionElements[5]->extensionAttributes['permission']['value']; 
if ($permission == 'denied') { 
    $state = 'unlisted'; 
} else if ($permission == 'allowed' || is_null($permission)) { 
    $state = 'public'; 
} 

같은 것을 시도;