feat: video_id script, move proto include to lib
This commit is contained in:
5
get_url.sh
Executable file
5
get_url.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
CHANNEL=$1
|
||||
LIVE_ID=$(curl -sL "https://www.youtube.com/@$CHANNEL/live" | grep -oE '"videoId":"([^"]+)"' | head -n 1 | cut -d'"' -f4)
|
||||
|
||||
echo "$LIVE_ID"
|
||||
Reference in New Issue
Block a user