protected function buildUrl($context = null)
{
$queries = array();
if ($this->titleTypes) {
$queries['title_type'] = implode(',', $this->titleTypes);
}
if ($this->year) {
$queries['year'] = $this->year;
}
if ($this->countries) {
$queries['countries'] = implode(',', $this->countries);
}
if ($this->languages) {
$queries['languages'] = implode(',', $this->languages);
}
if ($this->sort) {
$queries['sort'] = $this->sort;
}
return "http://" . $this->imdbsite . '/search/title?' . http_build_query($queries);
}