从YouTube数据API搜索查询中排除实时事件

gar*_*nch 5 php google-api-php-client youtube-data-api

我正在使用google-api-php-client(https://github.com/google/google-api-php-client)来搜索和检索来自YouTube的视频.我知道你可以像这样设置一个名为type的查询标记:

$searchquery = array(
      'q' => "flux",
      'maxResults' => 10,
      'type' => 'video',
      'videoDuration' => 'short',
      'videoEmbeddable' => 'true'
    );
Run Code Online (Sandbox Code Playgroud)

但是,它似乎也会在搜索结果中返回实时事件/直播.有没有办法排除直播活动视频?他们有一个标记,[liveBroadcastContent] => upcoming所以我可以进行搜索,但这并不理想.提前致谢.

编辑:仔细观察,并非所有的直播节目似乎都设置了标记[liveBroadcastContent].我发现有些像普通视频一样设置为无.