Property | Type | Description | |
---|---|---|---|
$allTags | array | Note that each isn't necessarily a valid ID3 tag name. | |
$tags | array | Tags to be synced. |
Method | Description | |
---|---|---|
__construct ( ) | ||
gatherFiles ( string $path ) : array | Gather all applicable files in a given directory. | |
getHash ( $path ) : string | Generate a unique hash for a file path. | |
setTags ( array $tags = [] ) | Construct an array of tags to be synced into the database from an input array of tags. | |
sync ( string | null $path = null, array $tags = [], boolean $force = false, |
Sync the media. Oh sync the media. | |
syncByWatchRecord ( App\Libraries\WatchRecord\WatchRecordInterface $record, |
Sync media using a watch record. | |
tidy ( ) | Tidy up the library by deleting empty albums and artists. |
public gatherFiles ( string $path ) : array | ||
$path | string | The directory's full path |
return | array | An array of SplFileInfo objects |
public sync ( string | null $path = null, array $tags = [], boolean $force = false, |
||
$path | string | null | |
$tags | array | The tags to sync. Only taken into account for existing records. New records will have all tags synced in regardless. |
$force | boolean | Whether to force syncing even unchanged files |
$syncCommand | The SyncMedia command object, to log to console if executed by artisan. |
public syncByWatchRecord ( App\Libraries\WatchRecord\WatchRecordInterface $record, |
||
$record | App\Libraries\WatchRecord\WatchRecordInterface | The watch record. |
$syncCommand | The SyncMedia command object, to log to console if executed by artisan. |
protected array $allTags | ||
return | array |