Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 16, 2024
1 parent cf3d481 commit e181c91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/SocialMediaPublisher/Objects/SocialUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static function upload($publisher_user_preferences_id, $videoPath, $title
return array('error' => true, 'msg' => 'Empty access token', 'line' => __LINE__);
}
$pub = new Publisher_user_preferences($publisher_user_preferences_id);
_error_log("SocialMediaPublisher::upload provider=".$pub->getProviderName());
try {
switch ($pub->getProviderName()) {
case SocialMediaPublisher::SOCIAL_TYPE_YOUTUBE['name']:
Expand All @@ -19,6 +20,7 @@ public static function upload($publisher_user_preferences_id, $videoPath, $title
case SocialMediaPublisher::SOCIAL_TYPE_FACEBOOK['name']:
$json = json_decode($pub->getJson());
$pageId = $json->{'restream.ypt.me'}->facebook->broadcaster_id;
_error_log("SocialMediaPublisher::upload json=".json_encode($json));
return SocialUploader::uploadFacebook($accessToken, $pageId, $videoPath, $title, $description, $visibility, $isShort);
break;
case SocialMediaPublisher::SOCIAL_TYPE_INSTAGRAM['name']:
Expand Down

0 comments on commit e181c91

Please sign in to comment.