mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 21:26:37 +00:00
Improve URL and cache keys for Dropbox adapters.
This commit is contained in:
parent
a652f38847
commit
63aa00ef31
|
@ -446,7 +446,7 @@ class StorageLocation
|
|||
break;
|
||||
|
||||
case self::ADAPTER_DROPBOX:
|
||||
return 'dropbox://' . ltrim($path, '/');
|
||||
return 'dropbox://' . $this->dropboxAuthToken . ltrim($path, '/');
|
||||
break;
|
||||
|
||||
case self::ADAPTER_LOCAL:
|
||||
|
|
|
@ -120,6 +120,13 @@ class FilesystemManager
|
|||
$objectUrl = $s3Client->getObjectUrl($bucket, $adapter->applyPathPrefix('/cache'));
|
||||
return $this->filterCacheKey($objectUrl);
|
||||
}
|
||||
|
||||
if ($adapter instanceof DropboxAdapter) {
|
||||
return $this->filterCacheKey(
|
||||
'dropbox_' . $adapter->getClient()->getAccessToken() . $adapter->applyPathPrefix('/cache')
|
||||
);
|
||||
}
|
||||
|
||||
if ($adapter instanceof AbstractAdapter) {
|
||||
return $this->filterCacheKey(ltrim($adapter->getPathPrefix(), '/'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user