Files
yt-dlp-proxy/templates/index.html
T
Mikhail Yevchenko ff6e727ae7 Initial implementation of yt-dlp HLS proxy server
- Flask app with HLS proxy routes (/hls, /player, /)
- yt-dlp integration with 365-day in-memory cache
- URL validation with allowed domains (youtube, pornhub, etc)
- HTML5 HLS player with hls.js
- Unit tests: URL validation, cache, error handling
- Integration tests: ffmpeg-generated test video, full proxy chain
- Environment-based configuration (PORT, CACHE_TTL, LOG_LEVEL)
- MIT license
2026-04-01 11:10:05 +00:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>yt-dlp Proxy</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
<style>
body {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
}
h1 {
text-align: center;
margin-bottom: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
input[type="text"] {
width: 100%;
padding: 0.75rem;
font-size: 1rem;
}
button {
width: 100%;
padding: 0.75rem;
font-size: 1rem;
}
</style>
</head>
<body>
<h1>yt-dlp HLS Proxy</h1>
<form action="/player" method="get">
<div class="form-group">
<label for="url">Video URL:</label>
<input type="text" id="url" name="url" placeholder="https://www.youtube.com/watch?v=..." required>
</div>
<button type="submit">Watch</button>
</form>
</body>
</html>