How mohanadfa/video-downloader works
This is a small Flask video-downloader web app. A user opens the page, submits a video URL to the download route, and receives the downloaded file; the route also removes the temporary file after sending it. The route first extracts video metadata, then sanitizes the title and configures a download through yt-dlp. Errors are cleaned and returned as JSON. The template is referenced by the route, but its contents and the browser-side request behavior were not sampled, so those details are not asserted.
Main entry points: app.py Download route · index.html Download page
Components 10
Presentation
- Download page
templates/index.html
Download service
- Download route
app.py - Metadata extraction
app.py - Filename sanitizing
app.py - Temporary downloads
app.py - File response
app.py - Post-send cleanup
app.py - Error response
app.py
External integration
- yt-dlp
Other components
- User
Connections 11
- User → Download page: opens
- Download route → Download page: renders
app.py - User → Download route: submits URL
app.py - Download route → Metadata extraction: extracts info
app.py - Metadata extraction → yt-dlp: queries
app.py - Download route → Filename sanitizing: sanitizes title
app.py - Download route → yt-dlp: downloads video
app.py - Download route → Temporary downloads: writes download
app.py - Download route → File response: sends file
app.py - Download route → Post-send cleanup: registers cleanup
app.py - Download route → Error response: returns errors
app.py