increase url validity duration to 4h
This commit is contained in:
parent
3724de8489
commit
682831ad1b
|
@ -20,7 +20,7 @@ public class B2ApiClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<EpisodeUrl> GetDownloadLink(string file) {
|
public async Task<EpisodeUrl> GetDownloadLink(string file) {
|
||||||
var auth = await _client.Files.GetDownloadAuthorization(file, 60, BucketId);
|
var auth = await _client.Files.GetDownloadAuthorization(file, 14400, BucketId);
|
||||||
return new EpisodeUrl {
|
return new EpisodeUrl {
|
||||||
Url = _client.Files.GetFriendlyDownloadUrl(file, Bucket),
|
Url = _client.Files.GetFriendlyDownloadUrl(file, Bucket),
|
||||||
Token = auth.AuthorizationToken,
|
Token = auth.AuthorizationToken,
|
||||||
|
|
Loading…
Reference in New Issue