QueueAlbumCoversCommand
extends Command
in package
Table of Contents
Properties
- $description : string
- The console command description.
- $signature : string
- The name and signature of the console command.
- $albumCoverService : AlbumCoverService
Methods
- __construct() : mixed
- handle() : int
- Execute the console command.
- clearQueuedStatus() : int
- Clear queued status for albums
- queueAlbumCovers() : int
- Queue album cover jobs
- showStatistics() : int
- Show cover statistics
Properties
$description
The console command description.
protected
string
$description
= 'Queue jobs to generate covers for albums without covers'
$signature
The name and signature of the console command.
protected
string
$signature
= 'music:queue-album-covers
{--force : Force re-processing of albums that already have covers}
{--limit= : Limit the number of albums to process}
{--library= : Only process albums from specific library ID}
{--stats : Show cover statistics only}
{--clear-queued : Clear queued status for all albums}'
$albumCoverService read-only
private
AlbumCoverService
$albumCoverService
Methods
__construct()
public
__construct(AlbumCoverService $albumCoverService) : mixed
Parameters
- $albumCoverService : AlbumCoverService
handle()
Execute the console command.
public
handle() : int
Return values
intclearQueuedStatus()
Clear queued status for albums
private
clearQueuedStatus() : int
Return values
intqueueAlbumCovers()
Queue album cover jobs
private
queueAlbumCovers() : int
Return values
intshowStatistics()
Show cover statistics
private
showStatistics() : int