perf: fix mp4 type replay

This commit is contained in:
Eric
2025-11-19 17:03:18 +08:00
committed by Eric_Lee
parent 28700c01c8
commit 4cd70efe66

View File

@@ -251,7 +251,8 @@ class SessionReplayViewSet(AsyncApiMixin, viewsets.ViewSet):
if url.endswith('.cast.gz'):
tp = 'asciicast'
elif url.endswith('.replay.mp4'):
elif url.endswith('.mp4'):
## .replay.mp4 .part.mp4
tp = 'mp4'
elif url.endswith('replay.json'):
# 新版本将返回元数据信息