diff --git a/Machine/MachineAbstract.php b/Machine/MachineAbstract.php index fca5c22..a35eebb 100644 --- a/Machine/MachineAbstract.php +++ b/Machine/MachineAbstract.php @@ -138,6 +138,11 @@ protected function xmlAttributesToArray($xml, $pass = 0) */ protected function makeCall($url) { + if(stripos($url,'?')>0) + $url.='&'; + else + $url.='?'; + $url.= 'X-Plex-Token='.$this->Token; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);