add(...VideoFetcher::run($channels)); $videos = $videos->toArray(); $totalVideos = count($videos); $totalChannels = count($channels); $watchedCount = count(array_filter($videos, fn(Video $v): bool => $v->watched)); $videos = array_splice($videos, 0, 300); function e(?string $value): string { return htmlentities($value ?? ''); } ?>