38 lines
2.0 KiB
HTML
38 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Request a YouTube Video - Sanctuary Commander</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1 class="text-center">Request a YouTube Video</h1>
|
|
<hr>
|
|
<nav class="mb-3" aria-label="Page navigation">
|
|
<a class="btn btn-secondary" href="{{ url_for('home.root_route') }}">Home</a>
|
|
<a class="btn btn-secondary" href="{{ url_for('youtube_download.list_jobs') }}">View Download Jobs</a>
|
|
</nav>
|
|
<div class="alert alert-info" role="status">
|
|
Queue a video for download to local storage. Downloads are processed by the separate YouTube worker.
|
|
</div>
|
|
{% if error %}
|
|
<div class="alert alert-danger" role="alert">{{ error }}</div>
|
|
{% endif %}
|
|
<form action="{{ url_for('youtube_download.request_download') }}" method="POST">
|
|
<div class="mb-3">
|
|
<label class="form-label" for="media_name">Media Name</label>
|
|
<input type="text" class="form-control" name="media_name" id="media_name" value="{{ media_name }}" maxlength="120" required>
|
|
<div class="form-text">The name to display when the downloaded video is ready to play.</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="youtube_url">YouTube Video URL</label>
|
|
<input type="url" class="form-control" name="youtube_url" id="youtube_url" value="{{ youtube_url }}" placeholder="https://www.youtube.com/watch?v=..." required>
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">Queue Download</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|