mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +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 {
|
||||
switch ($this->storage) {
|
||||
case 's3':
|
||||
preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||
preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||
return S3CompatibleMetadata::make($matches[1], $matches[2]);
|
||||
|
||||
case 's3-legacy':
|
||||
preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||
preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches);
|
||||
return LegacyS3Metadata::make($matches[1], $matches[2]);
|
||||
|
||||
case 'dropbox':
|
||||
|
|
Loading…
Reference in a new issue