start.sh 500 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. read search
  3. python3 parser01.py "$search"
  4. file="/home/q/Programms/videogrep/Triangle/link.txt"
  5. IFS=$'\n'
  6. for var in $(cat $file)
  7. do
  8. echo "Proverka_NO" > prov.txt
  9. python3 parser02.py $var
  10. file2="prov.txt"
  11. if [ $(cat $file2) = "sss" ]
  12. then
  13. python3 "1.py"
  14. yt-dlp $var -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "777.mp4"
  15. videogrep --input "777.mp4" --search "$search"
  16. mv supercut.mp4 file-$(date +%Y-%m-%d:%k:%M:%S).mp4
  17. rm "777.mp4"
  18. fi
  19. pkill -f firefox
  20. done