increase url validity duration to 4h
This commit is contained in:
parent
3724de8489
commit
682831ad1b
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class B2ApiClient {
|
|||
}
|
||||
|
||||
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 {
|
||||
Url = _client.Files.GetFriendlyDownloadUrl(file, Bucket),
|
||||
Token = auth.AuthorizationToken,
|
||||
|
|
Loading…
Reference in a new issue