Added command to update all courses and chapters, downloading videos and checking video size is split into two queues, chapters can be mark to sync individually, updated readme, check if subscription is active, playback rate controll,
This commit is contained in:
@@ -67,8 +67,12 @@ class HtmlParser
|
||||
|
||||
public function getVideoSource(Response $respose): ?string
|
||||
{
|
||||
$document = new Document($respose->getBody()->getContents());
|
||||
return $document->first('video source')?->getAttribute('src');
|
||||
return (new Document($respose->getBody()->getContents()))->first('video source')?->getAttribute('src');
|
||||
}
|
||||
|
||||
public function isSubscriptionActive(Response $respose): bool
|
||||
{
|
||||
return (new Document($respose->getBody()->getContents()))->has('.subscription-status .i-active');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user