Lot's of awesome changes and some added scripts
This commit is contained in:
parent
ed91c15381
commit
d36ce8b8b9
23 changed files with 303 additions and 374 deletions
15
scripts/lbrympv.fish
Executable file
15
scripts/lbrympv.fish
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
|
||||
mpv -(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