Guest User

track_stream_stats.sh

a guest
Jan 24th, 2025
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/bash -e
  2. echo 'status,timestamp,ccv,views,likes'
  3. while true; do
  4.     result=$(yt-dlp --no-warnings --ignore-no-formats-error --print '%(live_status)s,%(epoch-release_timestamp)d,%(concurrent_view_count)d,%(view_count)d,%(like_count)d' "$@")
  5.     echo "$result"
  6.     if [[ "${result:0:3}" == 'NA,' ]]; then exit; fi
  7.     sleep 15
  8. done
  9.  
Advertisement
Add Comment
Please, Sign In to add comment