Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 0caf8ce

Browse files
authored
Update class.youtube.php
Fixed youtube channel import error with "inVideoPromotion"
1 parent 4518dd1 commit 0caf8ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎The CMS/lib/class.youtube.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function getChannelByName($username, $optionalParams = false)
274274
$API_URL = $this->getApi('channels.list');
275275
$params = array(
276276
'forUsername' => $username,
277-
'part' => 'id,snippet,contentDetails,statistics,invideoPromotion'
277+
'part' => 'id,snippet,contentDetails,statistics'
278278
);
279279
if($optionalParams){
280280
$params = array_merge($params, $optionalParams);
@@ -293,7 +293,7 @@ public function getChannelById($id, $optionalParams = false)
293293
$API_URL = $this->getApi('channels.list');
294294
$params = array(
295295
'id' => $id,
296-
'part' => 'id,snippet,contentDetails,statistics,invideoPromotion'
296+
'part' => 'id,snippet,contentDetails,statistics'
297297
);
298298
if($optionalParams){
299299
$params = array_merge($params, $optionalParams);
@@ -676,4 +676,4 @@ function youtube_import($video=array(), $cat = null, $owner = null) {
676676
} else {
677677
echo '<p><span class="redText">Missing video id or title </span></p>';
678678
}
679-
}
679+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /