1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2023-10-17 12:56:22 -03:00
parent 6d653ee4e6
commit a352497442
25 changed files with 96 additions and 61 deletions

View file

@ -393,7 +393,7 @@ class API extends PluginAbstract
if (empty($parameters['playlists_id'])) {
//return new ApiObject("Playlist ID is empty", true, $parameters);
$_POST['sort']['created'] = 'DESC';
$config = new Configuration();
$config = new AVideoConf();
$videos = Video::getAllVideos();
$playlist = new PlayList($parameters['playlists_id']);
$parameters['playlist_name'] = __('Date Added');
@ -445,7 +445,7 @@ class API extends PluginAbstract
global $global;
$playlists = AVideoPlugin::loadPlugin("PlayLists");
//var_dump($videos);exit;
$config = new Configuration();
$config = new AVideoConf();
$users_id = User::getId();
$list = [];
$obj = new stdClass();
@ -1737,7 +1737,7 @@ class API extends PluginAbstract
global $global;
require_once $global['systemRootPath'] . 'objects/playlist.php';
$config = new Configuration();
$config = new AVideoConf();
$users_id = User::getId();
$list = [];
if (!empty($users_id)) {