1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-12-30 10:57:26 -03:00
parent eb42092b20
commit 5fae8547db
2 changed files with 21 additions and 0 deletions

View file

@ -3187,6 +3187,23 @@ class AVideoPlugin
return true;
}
public static function canNotifyVideo($key)
{
$plugins = Plugin::getAllEnabled();
foreach ($plugins as $value) {
self::YPTstart();
$p = static::loadPlugin($value['dirName']);
if (is_object($p)) {
if(!$p->canNotifyVideo($key)){
_error_log("{$value['dirName']} said you cannot notify this key $key");
return false;
}
}
self::YPTend("{$value['dirName']}::" . __FUNCTION__);
}
return true;
}
public static function videoHLSProtectionByPass($videos_id)
{
global $_useDownloadProtectionReason;

View file

@ -918,6 +918,10 @@ abstract class PluginAbstract {
function canRecordVideo($key) {
return true;
}
function canNotifyVideo($key) {
return true;
}
function videoHLSProtectionByPass($videos_id) {
return false;