Initial commit.

Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
Nicolás A. Ortega Froysa 2023-08-28 18:08:56 +02:00
commit 913710ded9

14
invid-conv Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
YT_URL=$1
INVID_BASE="https://yewtu.be"
if [[ $YT_URL == *"youtu.be"* ]]
then
INVID_URL="${INVID_BASE}/watch?v=${YT_URL##*/}"
elif [[ $YT_URL == *"www.youtube.com"* ]]
then
INVID_URL="${INVID_BASE}/${YT_URL##*/}"
fi
echo $INVID_URL