diff --git a/src/Panorama/Video.php b/src/Panorama/Video.php index 8c8bead..6d4fb2a 100644 --- a/src/Panorama/Video.php +++ b/src/Panorama/Video.php @@ -193,7 +193,11 @@ public function camelize($lowerCaseAndUnderscoredWord) */ public static function getDomain($url = '') { - $host = parse_url($url); + $host = parse_url($url); + + if (!array_key_exists('host', $host)) { + throw new \Exception('Video service or Url not supported'); + } $domainParts = preg_split("@\.@", $host['host']); /*