Skip to content

Commit

Permalink
Merge pull request #957 from AI4Bharat/minorchange-01
Browse files Browse the repository at this point in the history
minor change for azure blob video
  • Loading branch information
kartikvirendrar authored Dec 18, 2024
2 parents b6e0241 + dad65b3 commit c2fccaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/video/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ def get_video_func(request):

try:
if "blob.core.windows.net" in url:
info = ydl.extract_info(url, download=False)
title = info["title"]
# info = ydl.extract_info(url, download=False)
# title = info["title"]
title = "azure blob video"
video = VideoFileClip(url)
duration = timedelta(seconds=floor(video.duration))
direct_video_url = url
Expand Down

0 comments on commit c2fccaf

Please sign in to comment.