Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jun 1, 2024
1 parent 039a4e9 commit a9f42fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,7 @@ function getPorts()
$ports = array();
$ports[80] = 'Apache http';
$ports[443] = 'Apache https';
if(AVideoPlugin::isEnabled('Live')){
if(AVideoPlugin::isEnabledByName('Live')){
$ports[8080] = 'NGINX http';
$ports[8443] = 'NGINX https';
$ports[1935] = 'RTMP';
Expand Down Expand Up @@ -6905,7 +6905,7 @@ function rowToRoku($row)
$video->videoType = Video::getVideoTypeText($row['filename']);
$content->videos = [$video];

if (function_exists('getVTTTracks') || AVideoPlugin::isEnabled('SubtitleSwitcher')) {
if (function_exists('getVTTTracks') || AVideoPlugin::isEnabledByName('SubtitleSwitcher')) {
$captions = getVTTTracks($row['filename'], true);
if (!empty($captions)) {
$content->captions = array();
Expand Down
4 changes: 2 additions & 2 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -3531,13 +3531,13 @@ static function _getPrivacyInfo($videos_id)
$video = new Video("", "", $videos_id);
$ppv = AVideoPlugin::getObjectDataIfEnabled("PayPerView");
$response['fans_only'] = $video->getStatus() === self::$statusFansOnly;
if ($response['fans_only'] && AVideoPlugin::isEnabled("FansSubscriptions")) {
if ($response['fans_only'] && AVideoPlugin::isEnabledByName("FansSubscriptions")) {
$response['fans_only_info'] = FansSubscriptions::getPlansFromUsersID($video->getUsers_id());
}
$response['password_protectd'] = $advancedCustomUser->userCanProtectVideosWithPassword && !empty($video->getVideo_password());
$response['only_for_paid'] = !empty($video->getOnly_for_paid());
$response['pay_per_view'] = $ppv && PayPerView::isVideoPayPerView($videos_id);
if ($response['pay_per_view'] && AVideoPlugin::isEnabled("PayPerView")) {
if ($response['pay_per_view'] && AVideoPlugin::isEnabledByName("PayPerView")) {
$response['pay_per_view_info'] = PayPerView::getAllPlansFromVideo($videos_id);
}
$response['user_groups'] = !Video::isPublic($videos_id);
Expand Down
2 changes: 1 addition & 1 deletion plugin/CustomizeUser/CustomizeUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ public function getModeYouTube($videos_id)
forbiddenPage(__("Sorry, this video is private"));
}
/*
if (!AVideoPlugin::isEnabled('Gallery') && !AVideoPlugin::isEnabled('YouPHPFlix2') && !AVideoPlugin::isEnabled('YouTube')) {
if (!AVideoPlugin::isEnabledByName('Gallery') && !AVideoPlugin::isEnabledByName('YouPHPFlix2') && !AVideoPlugin::isEnabledByName('YouTube')) {
header("Location: {$global['webSiteRootURL']}user?msg=" . urlencode(__("Sorry, this video is private")));
} else {
header("Location: {$global['webSiteRootURL']}?msg=" . urlencode(__("Sorry, this video is private")));
Expand Down

0 comments on commit a9f42fc

Please sign in to comment.