grep you forces *you* in URL

This commit is contained in:
qo-op 2020-05-04 20:22:16 +02:00
parent 3d4bca6904
commit 8a6de5a2c2
2 changed files with 4 additions and 4 deletions

View File

@ -72,8 +72,8 @@ do
msg_branch=$(printf %s "$msg" | jq -r .value.content.branch)
# echo $msg_branch
msg_text=$(printf %s "$msg" | jq -r .value.content.text)
# echo $msg_text
msg_ytdlurl=$(echo $msg_text | egrep -o 'https?://[^ ]+' | cut -d '\' -f 1 | tail -n 1)
# echo $msg_text | grep you forces *you* in URL
msg_ytdlurl=$(echo $msg_text | egrep -o 'https?://[^ ]+' | grep you | cut -d '\' -f 1 | tail -n 1)
# echo $msg_ytdlurl
# YOUTUBE-DL AUDIO

View File

@ -70,8 +70,8 @@ do
msg_branch=$(printf %s "$msg" | jq -r .value.content.branch)
# echo $msg_branch
msg_text=$(printf %s "$msg" | jq -r .value.content.text)
# echo $msg_text
msg_ytdlurl=$(echo $msg_text | egrep -o 'https?://[^ ]+' | cut -d '\' -f 1 | tail -n 1)
# echo $msg_text | grep you forces *you* in URL
msg_ytdlurl=$(echo $msg_text | egrep -o 'https?://[^ ]+' | grep you | cut -d '\' -f 1 | tail -n 1)
# echo $msg_ytdlurl
# YOUTUBE-DL VIDEO