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 2024-02-01 13:40:59 -03:00
parent 6c032f5228
commit 4e2a43cdfc
6 changed files with 21 additions and 13 deletions

View file

@ -2226,6 +2226,7 @@ class API extends PluginAbstract
$row[$key]['videos'][$key2] = cleanUpRowFromDatabase($row[$key]['videos'][$key2]);
}
}
header('Content-Type: application/json');
echo json_encode($row);
exit;
}
@ -2269,9 +2270,10 @@ class API extends PluginAbstract
if (!User::isLogged()) {
return new ApiObject("Wrong user or password");
}
$_POST['videos_id'] = $parameters['videos_id'];
$_POST['add'] = $add;
$_POST['playlists_id'] = PlayLists::getFavoriteIdFromUser(User::getId());
$_REQUEST['videos_id'] = $parameters['videos_id'];
$_REQUEST['add'] = $add;
$_REQUEST['playlists_id'] = PlayLists::getFavoriteIdFromUser(User::getId());
header('Content-Type: application/json');
require_once $global['systemRootPath'] . 'objects/playListAddVideo.json.php';
exit;
}