mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
eb42092b20
commit
5fae8547db
2 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -918,6 +918,10 @@ abstract class PluginAbstract {
|
|||
function canRecordVideo($key) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function canNotifyVideo($key) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function videoHLSProtectionByPass($videos_id) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue