mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +00:00
fix(plus): incorrect regex for storage metadata matching
This commit is contained in:
parent
bfd00de9e2
commit
b4ea2856f3
1 changed files with 2 additions and 2 deletions
|
@ -167,11 +167,11 @@ class Song extends Model
|
||||||
try {
|
try {
|
||||||
switch ($this->storage) {
|
switch ($this->storage) {
|
||||||
case 's3':
|
case 's3':
|
||||||
preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||||
return S3CompatibleMetadata::make($matches[1], $matches[2]);
|
return S3CompatibleMetadata::make($matches[1], $matches[2]);
|
||||||
|
|
||||||
case 's3-legacy':
|
case 's3-legacy':
|
||||||
preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||||
return LegacyS3Metadata::make($matches[1], $matches[2]);
|
return LegacyS3Metadata::make($matches[1], $matches[2]);
|
||||||
|
|
||||||
case 'dropbox':
|
case 'dropbox':
|
||||||
|
|
Loading…
Reference in a new issue