scripts and tridactyl
This commit is contained in:
parent
fda17aea44
commit
2dbf5dfc9f
13 changed files with 18 additions and 9 deletions
15
scripts/lbryytdl
Executable file
15
scripts/lbryytdl
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set arg (getopt -s sh : $argv)
|
||||
set arg (fish -c "for el in $arg; echo \$el; end")
|
||||
|
||||
echo "arguments are: " $arg
|
||||
|
||||
for val in $arg
|
||||
if test $val = "--"
|
||||
echo "value in arg is: " $val
|
||||
else
|
||||
echo "value in arg is: " $val
|
||||
youtube-dl (curl $arg | rg embed | sed 's/.*embed\(.*\)">.*/\1/' | cut -d '"' -f1 | awk -v prefix="https://cdn.lbryplayer.xyz/api/v2/streams/free" '{print prefix $0}')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue