From dbb4093ca621f7ec3a96b50816e9eb3831deb01a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 23 Jun 2018 12:44:43 +0200 Subject: Added better doc and implemented top series/movie --- assets/php/getInformation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/php') diff --git a/assets/php/getInformation.php b/assets/php/getInformation.php index f4b32b6..c5f3ea2 100644 --- a/assets/php/getInformation.php +++ b/assets/php/getInformation.php @@ -5,10 +5,10 @@ * @copyright Marvin Borner 2018 */ -$RequestedTitle = $_GET["Title"]; +$RequestedTitle = $_POST["Title"]; $ApiKey = file_get_contents("../../../../ApiKeys/ThemoviedbApiKey.txt"); -$ch = curl_init("https://api.themoviedb.org/3/search/multi?api_key=" . $ApiKey . "&language=en-US&query=" . $RequestedTitle . "&page=1&include_adult=true"); +$ch = curl_init("https://api.themoviedb.org/3/search/multi?api_key=" . $ApiKey . "&language=en-US&query=" . urlencode($RequestedTitle) . "&page=1&include_adult=true"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $Result = json_decode(curl_exec($ch), true); -- cgit v1.2.3