feat(aliyundrive): add url_expire_sec for video preview (close #3522)

pull/3612/head
Andy Hsu 2023-02-23 20:50:31 +08:00
parent 28aee8c493
commit f95d843969
1 changed files with 1 additions and 0 deletions

View File

@ -337,6 +337,7 @@ func (d *AliDrive) Other(ctx context.Context, args model.OtherArgs) (interface{}
case "video_preview":
url = "https://api.aliyundrive.com/v2/file/get_video_preview_play_info"
data["category"] = "live_transcoding"
data["url_expire_sec"] = 14400
default:
return nil, errs.NotSupport
}