MCPcopy Create free account
hub / github.com/Hrishikesh332/dev-ai / get_video_id_from_url

Function get_video_id_from_url

utils.py:448–458  ·  view source on GitHub ↗
(video_url)

Source from the content-addressed store, hash-verified

446 }
447# Extract video ID and platform from URL
448def get_video_id_from_url(video_url):
449
450 try:
451 if 'vimeo.com' in video_url:
452 video_id = video_url.split('/')[-1].split('?')[0]
453 return video_id, 'vimeo'
454 else:
455 return video_url, 'direct'
456 except Exception as e:
457 st.error(f"Error processing video URL: {str(e)}")
458 return None, None
459
460# Format time in seconds to URL compatible format
461def format_time_for_url(time_in_seconds):

Callers 1

create_video_embedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected