if ($this->title != '') {
$parts[] = $this->title;
}
- if ($this->event->title != '' && strlen(implode(' - ', $parts).' - '.$this->event->title) < 100) {
+ if ($this->event->title != '') {
$parts[] = $this->event->title;
}
$name = implode(' - ', $parts);
+ if (strlen($name) > 100) {
+ $name = substr($name, 0, 99).'…';
+ }
return $name;
}
}
}
}
+ $comms = [];
+ foreach ($this->confirmedCrew as $crew) {
+ if ($crew->role == 'commentary') {
+ $comms[] = $crew;
+ }
+ }
+ if (count($comms)) {
+ $description .= "\nComms:\n";
+ foreach ($comms as $crew) {
+ $link = $crew->getStreamLink();
+ if ($link) {
+ $description .= '- ['.$crew->getName().']('.$link.")\n";
+ } else {
+ $description .= '- '.$crew->getName()."\n";
+ }
+ }
+ }
return $description;
}