fix(plus): incorrect regex for storage metadata matching

This commit is contained in:
Phan An 2024-02-05 23:27:47 +01:00
parent bfd00de9e2
commit b4ea2856f3

View file

@ -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':