Skip to content

Commit e8ed132

Browse files
author
SM_SAYEED
committed
"Fix: Detect file type for Drive links and show correct player"
1 parent d7899f0 commit e8ed132

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

templates/clips.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,23 @@ <h3>Upload a Music/Video File</h3>
7575
</div>
7676

7777
<div class="upload-form" style="margin-bottom:2em;">
78+
7879
<h3>Add a Clip from Google Drive</h3>
7980
<form action="{{ url_for('public_clips') }}" method="post">
8081
<input type="hidden" name="action" value="drive_link">
8182
<p><input type="text" name="title" placeholder="Title" required></p>
8283
<p><input type="text" name="description" placeholder="Description"></p>
8384
<p><input type="text" name="link" placeholder="Paste Google Drive Share Link Here" style="width: 100%;" required></p>
84-
<p><button type="submit">Add Drive Clip</button></p>
85+
<p>
86+
<label><strong>Type:</strong></label>
87+
<select name="media_type" required>
88+
<option value="audio">Audio (.mp3)</option>
89+
<option value="video">Video (.mp4)</option>
90+
</select>
91+
</p>
92+
<p><button type="submit">Add Drive Content</button></p>
8593
</form>
94+
8695
</div>
8796

8897
{% if message %}

0 commit comments

Comments
 (0)