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:
@@ -11,12 +11,20 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class DownloadVideoFile implements ShouldQueue
|
||||
class DownloadVideoFile implements ShouldQueue, ShouldBeUnique
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public const NAME = 'downloadVideoFile';
|
||||
|
||||
public function __construct(private int $chapterId)
|
||||
{
|
||||
$this->onQueue(self::NAME);
|
||||
}
|
||||
|
||||
public function uniqueId(): string
|
||||
{
|
||||
return $this->chapterId;
|
||||
}
|
||||
|
||||
public function handle(SymfonyCastDlService $symfonyCastDlService)
|
||||
|
||||
@@ -11,12 +11,20 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class GetVideoFileSize implements ShouldQueue
|
||||
class GetVideoFileSize implements ShouldQueue, ShouldBeUnique
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public const NAME = 'getVideoFileSize';
|
||||
|
||||
public function __construct(private int $chapterId)
|
||||
{
|
||||
$this->onQueue(self::NAME);
|
||||
}
|
||||
|
||||
public function uniqueId(): string
|
||||
{
|
||||
return $this->chapterId;
|
||||
}
|
||||
|
||||
public function handle(SymfonyCastDlService $symfonyCastDlService)
|
||||
|
||||
Reference in New Issue
Block a user