Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -e
- echo 'status,timestamp,ccv,views,likes'
- while true; do
- 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' "$@")
- echo "$result"
- if [[ "${result:0:3}" == 'NA,' ]]; then exit; fi
- sleep 15
- done
Advertisement
Add Comment
Please, Sign In to add comment