Initial commit.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
commit
913710ded9
14
invid-conv
Executable file
14
invid-conv
Executable 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
|
Loading…
Reference in New Issue
Block a user