mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Merge branch 'master' of github.com:koel/koel into master
This commit is contained in:
commit
699e2b5a98
1 changed files with 4 additions and 2 deletions
|
@ -19,12 +19,14 @@ class SongController extends Controller
|
|||
|
||||
public function put(PutSongRequest $request)
|
||||
{
|
||||
$artist = array_get($request->tags, 'artist', '');
|
||||
$albumartist = trim(array_get($request->tags, 'albumartist', ''));
|
||||
$song = $this->s3Service->createSongEntry(
|
||||
$request->bucket,
|
||||
$request->key,
|
||||
array_get($request->tags, 'artist'),
|
||||
$artist,
|
||||
array_get($request->tags, 'album'),
|
||||
(bool) trim(array_get($request->tags, 'albumartist')),
|
||||
(bool) $albumartist && $albumartist !== $artist,
|
||||
array_get($request->tags, 'cover'),
|
||||
trim(array_get($request->tags, 'title', '')),
|
||||
(int) array_get($request->tags, 'duration', 0),
|
||||
|
|
Loading…
Reference in a new issue