Add hosted URL and torrent hints inputs to upload modal

This commit is contained in:
thePR0M3TH3AN
2025-09-24 15:04:11 -04:00
parent e4ae6fadef
commit 2150ac0f0b

View File

@@ -73,13 +73,13 @@
<label
for="uploadUrl"
class="block text-sm font-medium text-gray-200"
>Hosted Video URL (preferred)</label
>Hosted video URL</label
>
<input
type="url"
id="uploadUrl"
placeholder="https://cdn.example.com/video.mp4"
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
class="mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
/>
<p class="mt-1 text-xs text-gray-400">
Direct link to your video or stream. Bitvid will play this first before falling back to WebTorrent.
@@ -90,13 +90,13 @@
<label
for="uploadMagnet"
class="block text-sm font-medium text-gray-200"
>Magnet Link (optional if URL provided)</label
>Magnet link (optional if URL provided)</label
>
<input
type="text"
id="uploadMagnet"
placeholder="magnet:?xt=urn:btih:..."
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
class="mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
/>
<p class="mt-1 text-xs text-gray-400">
Include this when you have a torrent source. Bitvid will automatically augment it with any web seeds or metadata you provide.
@@ -108,13 +108,13 @@
<label
for="uploadWs"
class="block text-sm font-medium text-gray-200"
>Web Seed Base (ws, optional)</label
>Web seed base (ws, optional)</label
>
<input
type="url"
id="uploadWs"
placeholder="https://cdn.example.com/path/to/"
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
class="mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
/>
<p class="mt-1 text-xs text-gray-400">
HTTP(S) base path peers can fetch pieces from when falling back to the magnet.
@@ -124,13 +124,13 @@
<label
for="uploadXs"
class="block text-sm font-medium text-gray-200"
>Torrent Metadata URL (xs, optional)</label
>Torrent metadata URL (xs, optional)</label
>
<input
type="url"
id="uploadXs"
placeholder="https://cdn.example.com/video.torrent"
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
class="mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
/>
<p class="mt-1 text-xs text-gray-400">
Link to the <code>.torrent</code> file so WebTorrent clients can bootstrap instantly.