increase url validity duration to 4h

This commit is contained in:
Rudis Muiznieks 2023-03-27 03:15:50 +00:00
parent 3724de8489
commit 682831ad1b
1 changed files with 1 additions and 1 deletions

View File

@ -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,