jav script Anonymous 03/24/2021 (Wed) 06:52 No.15 del
This is one of the simpler versions of the jav script which takes a video code as parameter and streams the video using mpv. Many derivatives of the original jav shell function were made, but this one is mine.
https://warosu.org/jp/thread/32431725#p32464690

#!/bin/sh

jav_name() {
if [ -z "$1" ]; then
read name
else
name="$1"
fi
echo $name
}

jav_url () {
name="$(jav_name $1)"
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)"

Message too long. Click here to view full text.