Browse Source

社媒对接

moshaorui 23 hours ago
parent
commit
a3d24f2bdb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Services/Smm/YoutubeService.php

+ 1 - 0
app/Services/Smm/YoutubeService.php

@@ -128,6 +128,7 @@ class YoutubeService implements SmmPlatformInterface
             // 设置视频状态
             $status = new Google_Service_YouTube_VideoStatus();
             $status->setPrivacyStatus('public'); // public, private, unlisted
+            $status->setMadeForKids(true);// 是否为儿童视频
             // 创建视频对象
             $video = new Google_Service_YouTube_Video();
             $video->setSnippet($snippet);