mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
format
This commit is contained in:
@@ -91,7 +91,11 @@ async def transcript_get_audio_mp3(
|
|||||||
status_code=404, detail="Audio unavailable due to privacy settings"
|
status_code=404, detail="Audio unavailable due to privacy settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not hasattr(transcript, 'audio_mp3_filename') or not transcript.audio_mp3_filename or not transcript.audio_mp3_filename.exists():
|
if (
|
||||||
|
not hasattr(transcript, "audio_mp3_filename")
|
||||||
|
or not transcript.audio_mp3_filename
|
||||||
|
or not transcript.audio_mp3_filename.exists()
|
||||||
|
):
|
||||||
raise HTTPException(status_code=404, detail="Audio file not found")
|
raise HTTPException(status_code=404, detail="Audio file not found")
|
||||||
|
|
||||||
truncated_id = str(transcript.id).split("-")[0]
|
truncated_id = str(transcript.id).split("-")[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user