fix(voices): AI配音标识兼容旧素材,增加 tts_job_id 降级判断 (#1666)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 3s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / Validate - Style (push) Successful in 1m35s
AI Code Review / AI Code Review (pull_request) Failing after 2m5s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m48s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m55s
CI/CD Pipeline / Integration Tests (push) Successful in 1m15s
CI/CD Pipeline / Build Staging API Image (push) Successful in 24s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 23s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 19s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 20s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 36s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m0s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 5m14s
CI/CD Pipeline / CI Gate (pull_request) Successful in 4s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 6m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 2m17s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m29s
CI/CD Pipeline / Unit Tests (push) Successful in 9m22s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m16s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m4s
CI/CD Pipeline / Validate - Security (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 306h27m37s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 306h27m38s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 306h27m41s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 306h27m42s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 306h27m42s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 306h27m45s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 306h27m45s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 306h27m46s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 306h27m48s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 306h27m48s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 306h28m1s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 306h30m59s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 306h31m0s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 306h31m0s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 306h31m11s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 306h31m12s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 306h31m14s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 306h31m14s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 306h31m18s
CI/CD Pipeline / PR Build Web Image (push) Failing after 306h31m19s
CI/CD Pipeline / PR Build API Image (push) Failing after 306h31m19s
CI/CD Pipeline / Frontend Lint (push) Failing after 306h32m2s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 306h34m8s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 306h34m10s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 307h2m5s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 307h2m10s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 307h5m23s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 307h5m34s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 307h5m36s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 3s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / Validate - Style (push) Successful in 1m35s
AI Code Review / AI Code Review (pull_request) Failing after 2m5s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m48s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m55s
CI/CD Pipeline / Integration Tests (push) Successful in 1m15s
CI/CD Pipeline / Build Staging API Image (push) Successful in 24s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 23s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 19s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 20s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 36s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m0s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 5m14s
CI/CD Pipeline / CI Gate (pull_request) Successful in 4s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 6m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 2m17s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m29s
CI/CD Pipeline / Unit Tests (push) Successful in 9m22s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m16s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 4m4s
CI/CD Pipeline / Validate - Security (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 306h27m37s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 306h27m38s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 306h27m41s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 306h27m42s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 306h27m42s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 306h27m45s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 306h27m45s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 306h27m46s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 306h27m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 306h27m48s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 306h27m48s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 306h28m1s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 306h30m59s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 306h31m0s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 306h31m0s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 306h31m11s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 306h31m12s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 306h31m14s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 306h31m14s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 306h31m18s
CI/CD Pipeline / PR Build Web Image (push) Failing after 306h31m19s
CI/CD Pipeline / PR Build API Image (push) Failing after 306h31m19s
CI/CD Pipeline / Frontend Lint (push) Failing after 306h32m2s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 306h34m8s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 306h34m10s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 307h2m5s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 307h2m10s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 307h5m23s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 307h5m34s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 307h5m36s
This commit was merged in pull request #1666.
This commit is contained in:
@@ -136,8 +136,9 @@ export const MaterialVoiceTab: React.FC<MaterialVoiceTabProps> = ({
|
||||
const material = mapAssetToMaterial(asset)
|
||||
// duration 优先取顶层(后端从 metadata 提取),兜底 metadata
|
||||
const cardDuration = asset.duration || material.duration || 0
|
||||
// AI 生成素材标识(metadata.source === "tts_job")
|
||||
const isAiMaterial = (asset.metadata as Record<string, unknown>)?.source === "tts_job"
|
||||
// AI 生成素材标识:兼容旧素材(无 source 字段但有 tts_job_id)
|
||||
const meta = asset.metadata as Record<string, unknown>
|
||||
const isAiMaterial = meta?.source === "tts_job" || !!meta?.tts_job_id
|
||||
const isPlaying = playingId === asset.id
|
||||
const isSelected = selectedIds.has(asset.id)
|
||||
// 播放中以 audio 真实时长为准,未播放显示卡片时长
|
||||
|
||||
Reference in New Issue
Block a user