feat: video_id script, move proto include to lib

This commit is contained in:
2026-04-13 10:01:58 +02:00
parent 5a661c826d
commit 1d298794ce
4 changed files with 26 additions and 14 deletions

5
get_url.sh Executable file
View 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"