msrec: show all output by default
This commit is contained in:
parent
5374bcadee
commit
0c1c03f0e0
@ -58,12 +58,14 @@ r.encoding = "utf-8"
|
|||||||
print(r.text)
|
print(r.text)
|
||||||
EOF`
|
EOF`
|
||||||
|
|
||||||
printf "\n\nResult (copied to clipboard):\n\n"
|
|
||||||
|
|
||||||
python -c "$c" "$TMPF" \
|
python -c "$c" "$TMPF" \
|
||||||
| tee "$XDG_CACHE_HOME"/msrec.out \
|
> "$XDG_CACHE_HOME"/msrec.out
|
||||||
| jq -r '"https://youtube.com/watch?v=" + .metadata.music[-1].external_metadata.youtube.vid' \
|
|
||||||
| tee /dev/tty \
|
printf "\n\nRaw output:\n"
|
||||||
| xsel -ib
|
cat "$XDG_CACHE_HOME"/msrec.out | jq
|
||||||
|
|
||||||
|
printf "Links:\n"
|
||||||
|
cat "$XDG_CACHE_HOME"/msrec.out \
|
||||||
|
| jq -r '"https://youtu.be/" + .metadata.music[].external_metadata.youtube.vid'
|
||||||
|
|
||||||
rm "$TMPF"
|
rm "$TMPF"
|
||||||
|
Loading…
Reference in New Issue
Block a user