protected function getPlaylistIdFromUrl($playlistUrl)
	{
		$playlistId = $playlistUrl;
		$urlPart = parse_url($playlistUrl);

		if (isset($urlPart['query']))
		{
			$query = $this->decodeString($urlPart['query']);

			if (isset($query['list']))
				$playlistId = $query['list'];
			elseif (isset($query['p']))
				$playlistId = $query['p'];
		}

		return $playlistId;
	}
protected function getPlaylistIdFromUrl($playlistUrl)
	{
		$playlistId = $playlistUrl;
		$urlPart = parse_url($playlistUrl);

		if (isset($urlPart['query']))
		{
			$query = $this->decodeString($urlPart['query']);

			if (isset($query['list']))
				$playlistId = $query['list'];
			elseif (isset($query['p']))
				$playlistId = $query['p'];
		}

		return $playlistId;
	}
protected function getPlaylistIdFromUrl ( $ playlistUrl ) { $ playlistId = $ playlistUrl ; $ urlPart = parse_url ( $ playlistUrl ) ; if ( isset ( $ urlPart [ 'query' ] ) ) { $ query = $ this -> decodeString ( $ urlPart [ 'query' ] ) ; if ( isset ( $ query [ 'list' ] ) ) $ playlistId = $ query [ 'list' ] ; elseif ( isset ( $ query [ 'p' ] ) ) $ playlistId = $ query [ 'p' ] ; } return $ playlistId ; }
Cuts playlist id from absolute Youtube playlist url

@param  string $playlistUrl Full Youtube playlist url
@return string           Playlist ID
Cuts playlist id from absolute Youtube playlist url