]> git.ekhem.eu.org Git - ydlpd.git/commitdiff
Select formats with the <select> tag.
authorJakub Czajka <jakub@ekhem.eu.org>
Mon, 1 Jan 2024 20:43:44 +0000 (21:43 +0100)
committerJakub Czajka <jakub@ekhem.eu.org>
Mon, 1 Jan 2024 20:46:34 +0000 (21:46 +0100)
COPYING
ydlpd.sh

diff --git a/COPYING b/COPYING
index 5cd4b31e29ee82e5de4e892ba1757882bf1af8d6..423663a94820e464f2ec63c0e4eafb8d8e3c31da 100644 (file)
--- a/COPYING
+++ b/COPYING
@@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
 state the exclusion of warranty; and each file should have at least
 the "copyright" line and a pointer to where the full notice is found.
 
-    Copyright (C) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+    Copyright (C) 2023-2024 Jakub Czajka <jakub@ekhem.eu.org>
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -651,7 +651,7 @@ Also add information on how to contact you by electronic and paper mail.
   If the program does terminal interaction, make it output a short
 notice like this when it starts in an interactive mode:
 
-    ydldp Copyright (C) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+    ydldp Copyright (C) 2023-2024 Jakub Czajka <jakub@ekhem.eu.org>
     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
index 68f322526d3f8342454be82a728d07fd2895040f..cf6d2e887a4679a37f5397ea84c187b5dab438e3 100755 (executable)
--- a/ydlpd.sh
+++ b/ydlpd.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# Copyright (c) 2023-2024 Jakub Czajka <jakub@ekhem.eu.org>
 # License: GPL-3.0 or later.
 
 YOUTUBE_URL_RE="(https:\/\/)?(www\.)?youtu(\.be|be\.com)\/watch\?v=([\w\-_]+)"
@@ -40,15 +40,11 @@ PAGE="
         <input type='text' id='url' name='url' pattern='${YOUTUBE_URL_RE}' required />
       </label>
 
-      <label>
-        Format:
-        <input list='formats' id='format' name='format'>
-      </label>
-
-      <datalist id='formats'>
-        <option value='video' />
-        <option value='audio' />
-      </datalist>
+      <select id='format' name='format'>
+        <option value=''>--Select format--</option>
+        <option value='video'>video</option>
+        <option value='audio'>audio</option>
+      </select>
 
       <button type='submit'>Download</button>
     </fieldset>