feat: 录像增加 cast 格式 (#7259)

* feat: 录像增加 cast 格式

* perf: 优化一下写法

* perf: 修改一点点

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
Eric_Lee
2021-12-08 15:35:22 +08:00
committed by GitHub
parent d72aa34513
commit 0afeed0ff1
5 changed files with 89 additions and 38 deletions

View File

@@ -85,7 +85,7 @@ def upload_session_replay_to_external_storage(session_id):
logger.error(f'Session replay not found, may be upload error: {local_path}')
return
abs_path = default_storage.path(local_path)
remote_path = session.get_rel_replay_path()
remote_path = session.get_relative_path_by_local_path(abs_path)
ok, err = server_replay_storage.upload(abs_path, remote_path)
if not ok:
logger.error(f'Session replay upload to external error: {err}')