allow sorting by course name and published date, link to manually update course details,
This commit is contained in:
@@ -47,6 +47,14 @@ class SymfonyCastDlService
|
||||
}
|
||||
}
|
||||
|
||||
public function updateCourse(Course $course): void
|
||||
{
|
||||
$singleCoursePage = $this->client->get('/screencast/' . $course->link);
|
||||
$chapters = $this->htmlParser->getCourseDetails($singleCoursePage, $course->id);
|
||||
$chapters->each->save();
|
||||
$chapters->each(fn($chapter) => GetVideoFileSize::dispatch($chapter->id));
|
||||
}
|
||||
|
||||
public function getChapterInfo(Chapter $chapter): string
|
||||
{
|
||||
$course = $chapter->course;
|
||||
|
||||
Reference in New Issue
Block a user