Advertisement
karim0209

termux-url-opener

Mar 2nd, 2025
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/bash
  2. export XDG_RUNTIME_DIR='/data/data/com.termux/files/usr/tmp/runtime-u0_a547'
  3. export RUNLEVEL=3
  4. echo "For Download --write-auto-subs in En press 1"
  5. echo "For Download --write-auto-subs in Te press 2"
  6. echo "For Download YouTube video Description press 3"
  7. read option
  8. if [ "$option" -eq "1" ]
  9. then
  10.     cd ~/storage/shared/Description/Auto-SubT-English;ls
  11.     echo -e "Downloading video description please wait .... \n"
  12.     yt-dlp -i --skip-download --write-auto-subs -o '%(playlist)s/%(title)s.%(ext)s' $1;ls;sleep 7
  13. elif [ "$option" -eq "2" ]
  14. then
  15.     cd ~/storage/shared/Description/Auto-SubT-Telugu;ls
  16.     echo -e "Downloading video description please wait .... \n"
  17.     yt-dlp -i --skip-download --write-auto-subs --sub-langs te -o '%(playlist)s/%(title)s.%(ext)s' $1;ls;sleep 7
  18. elif [ "$option" -eq "3" ]
  19. then
  20.     cd ~/storage/shared/Description/;ls
  21.     echo -e "Downloading video description please wait .... \n"
  22.     yt-dlp -i --skip-download --write-description $1;ls;sleep 7
  23. fi
  24.  
  25.  
  26. #elif [ "$option" -eq "24" ]
  27. #then
  28. #    cd ~/storage/shared/IAS/TheHindu/;ls
  29. #    echo -e "$pwd\n Downloading web content ...."
  30. #    ls
  31. #    echo -e "paste here your single url"
  32. #    THAu
  33. #    echo -e "your single url data downloaded"
  34. #    rm New*
  35. #    sleep 3
  36. #/storage/emulated/0/Study-Materials/DristiIASm4a
  37. #elif [ "$option" -eq "21" ]
  38. #then
  39. #    cd /data/data/com.termux/files/home/storage/shared/Study-Materials
  40. #    ls
  41. #    echo -e "Downloading web content ...."
  42. #    TheHinduArticle > $(touch $(echo "$(date +%A%d-%B-%Y-Time-%I-%M).txt"))
  43. #    txt2pdf --font /data/data/com.termux/files/home/DroidSerif-Regular.ttf $(echo "$(date +%A%d--%B-%Y-Time-%I-%M).txt") -o $(echo "$(date +%A%d-%B-%Y-Time-%I-%M).pdf")
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement