Skip to content

Commit

Permalink
Merge pull request #970 from AI4Bharat/minorchange-001
Browse files Browse the repository at this point in the history
fixes for export endpoint
  • Loading branch information
aparna-aa authored Jan 7, 2025
2 parents a1f33b6 + d904200 commit b347292
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions backend/video/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,13 +610,21 @@ def get_video_func(request):
url=normalized_url,
)
else:
video = Video.objects.get(
name=title,
project_id=project,
audio_only=is_audio_only,
language=lang,
url=normalized_url,
)
try:
video = Video.objects.get(
name=title,
project_id=project,
audio_only=is_audio_only,
language=lang,
url=normalized_url,
)
except:
video = Video.objects.get(
project_id=project,
audio_only=is_audio_only,
language=lang,
url=normalized_url,
)

if create:
if speaker_info is not None:
Expand Down

0 comments on commit b347292

Please sign in to comment.