Guest User

Untitled

a guest
Mar 11th, 2021
348
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jav_name() {
  2.   if [ -z "$1" ]; then
  3.     read name
  4.   else
  5.     name="$1"
  6.   fi
  7.   echo $name
  8. }
  9.  
  10. jav_url () {
  11.   name="$(jav_name $1)"
  12.   links="$(curl -s "$(curl -s "https://www2.javhdporn.net/video/$name" | grep "embedURL" | grep -o "{.*}" | jq '.["@graph"]' | jq -r '.[].embedURL' | sed '/^null$/d' | sed 's/\/v\//\/api\/source\//')" --data-raw 'r=&d=javmvp.com' | jq -r '.data[] | select(.label | contains("720p", "480p","360p")).file' | tail -n1)"
  13.  echo "$links"
  14. }
  15.  
  16. jav_dl() {
  17.  name="$(jav_name $1)"
  18.  redirect_url="$(jav_url "$name")"
  19.  video_url="$(curl -s -I "$redirect_url" | grep "location" | awk '{ print $2 }' | tr -d "\r")"
  20.  base="$(basename $video_url)"
  21.  ext="${base##*.}"
  22.  filename="$name.$ext"
  23.  curl -o "$filename" "$video_url"
  24. }
  25.  
  26. jav () {
  27.  mpv "$(jav_url $(jav_name $1))"
  28. }
  29.  
RAW Paste Data