bashtube/webroot/proxy.shs

6 lines
183 B
Plaintext
Raw Normal View History

2021-05-03 01:06:01 +02:00
#!/bin/bash
url="$(url_decode "${get_data[url]}" | tr -d '\n\r')"
if [[ "$url" == "https://"[a-z0-9-]*".googlevideo.com/"* ]]; then
curl -H "Range: bytes=${r[range]}" "$url" -o -
fi