Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

Web Application

YouTube Video Redirect Service

YouTube Video Link Handler

A small Flask app that uses yt-dlp to find a YouTube video’s direct media link and play it. For a shared song queue and OBS, see Streaming Player.

Role
Creator & Maintainer
Period
2021 – 2022
Status
Archived
Categories
Web apps & extensions
Stack
  • Python
  • Flask
  • yt-dlp
  • Docker
YouTube Video Redirect Service, screenshot 1

Overview

A Flask service that accepts a video ID, resolves a direct media URL with yt-dlp and renders a player. The final version includes Docker and a JavaScript runtime for extraction. New song-request and OBS work continues in Streaming Player.

What it's good for

Handy for seeing what yt-dlp actually returns for a page: the direct file link, title and type, above a plain player that recommends nothing afterwards. In the November 2026 tests YouTube stopped at the link; Wikimedia Commons pages still played end to end.

How it fits together

Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.

In 2026 it still finds the link, then Edge blocks the video. That was its one job.

  1. Browser
    • /?v=<video id>
    → GET
  2. This oneFlask app
    • main.py
    • One template
    → extract_info
  3. yt-dlp
    • Format "best"
    • Deno runs player JS
    → direct link
  4. Player page
    • Video.js
    • Plain <video> tag

Point at a box to see what it connects to.

The 2021 version: the raw direct link printed above the player. Styling was optional.
The 2021 version: the raw direct link printed above the player. Styling was optional.

Features

  • Video-ID URL parameter
  • Direct media URL resolution with yt-dlp
  • Docker deployment
Today's version: paste a link, the file plays, and the direct link sits under it
Today's version: paste a link, the file plays, and the direct link sits under it

Results

  • Runnable final version preserved with tests and Docker

What I learned

  • On 2026-11-04 yt-dlp still found the googlevideo.com link, but Edge blocked YouTube's reply as ERR_BLOCKED_BY_ORB, the one step this app exists for.
  • YouTube rations links rather than refusing them: after about fifteen lookups in forty minutes it asked for a bot check; half an hour later they came back.
  • The format is "best" because a plain <video> tag cannot join separate video and audio streams, so only single-file formats qualify.
  • Web apps & extensions77 stars on GitHub

    Streaming Player

    Twitch, YouTube live chat and chat bots share one song queue. A Rust backend keeps the OBS player, overlay and moderator dashboard in sync.

    2023Completed
  • Web apps & extensions11 stars on GitHub

    Gantt Studio

    Drag a schedule into place, draw dependencies and see the critical path. Switch to Mermaid text without losing the plan. Everything stays in your browser.

    2026Completed
  • Web apps & extensions33 stars on GitHub

    MorphKit

    Converts and edits images, audio, video, PDFs and documents entirely in the browser. Nothing gets uploaded, mostly because there is nowhere to upload it to.

    2026Active