🐛 Use random string for empty title in filename
This commit is contained in:
parent
b7534c01f5
commit
f33031ed8b
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class ParseWatchFile implements DataPipe
|
||||||
$properties['watched'] = Carbon::now();
|
$properties['watched'] = Carbon::now();
|
||||||
$properties['output'] = sprintf(
|
$properties['output'] = sprintf(
|
||||||
'%s-%dx%02d.json',
|
'%s-%dx%02d.json',
|
||||||
Str::slug($properties['showTitle']),
|
Str::slug($properties['showTitle'] ?? uniqid()),
|
||||||
$properties['season'],
|
$properties['season'],
|
||||||
$properties['episode']
|
$properties['episode']
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue