$end = Carbon::parse($entry['end']['dateTime'])->setTimezone('UTC');
$episode->estimate = $start->diffInSeconds($end);
$episode->confirmed = true;
- if (preg_match('/^(.*) - (.*?) vs\.? (.*?)$/u', $episode->title, $matches)) {
+ if (preg_match('/^(.*) - (.*?) vs\.? (.*?) vs\.? (.*?) vs\.? (.*?)$/u', $episode->title, $matches)) {
+ $episode->title = $matches[1];
+ $episode->save();
+ $this->syncPlayer($episode, $matches[2]);
+ $this->syncPlayer($episode, $matches[3]);
+ $this->syncPlayer($episode, $matches[4]);
+ $this->syncPlayer($episode, $matches[5]);
+ } else if (preg_match('/^(.*) - (.*?) vs\.? (.*?) vs\.? (.*?)$/u', $episode->title, $matches)) {
+ $episode->title = $matches[1];
+ $episode->save();
+ $this->syncPlayer($episode, $matches[2]);
+ $this->syncPlayer($episode, $matches[3]);
+ $this->syncPlayer($episode, $matches[4]);
+ } else if (preg_match('/^(.*) - (.*?) vs\.? (.*?)$/u', $episode->title, $matches)) {
$episode->title = $matches[1];
$episode->save();
$this->syncPlayer($episode, $matches[2]);