feat(discovery): find YouTube cache hosts

Co-authored-by: GPT-6 <gpt-6@openai.com>
This commit is contained in:
ZeusinaandGPT-6 Bot committed 2026-10-09 22:11:13 +03:00
1 parent 04fd9b370d
commit db92cff2b5
5 files changed
+357 -9

No files matched your search

+21
View File
@@ -2,6 +2,27 @@
Go CLI for scanning and checking YouTube TLS bypass strategies with `blockcheckw`.
## Cache-host discovery
```sh
zapret-autotune discover youtube --video-id dQw4w9WgXcQ --proxy socks5://localhost:1080
```
Both flags are required. Use a proxy address reachable from the CLI; in Docker,
`localhost` is the container itself, not the Docker host. Proxy credentials,
cookies, and API credentials are not supported. This command requires `curl`
with `--json` support and POSTs to the YouTube player API through SOCKS5 using
Android client 21.02.35, SDK 30, Android 11. Requests time out after 30 seconds;
responses are limited to 1 MiB and must have playability status `OK` and a valid
HTTPS `serverAbrStreamingUrl` under `.googlevideo.com`.
Output is JSON containing only `videoId` and `hostnames`; signed streaming URLs
are never printed. Cache hosts may rotate. This is **cache-host discovery only**,
not verification of real video transfer: a discovered SABR URL can return
`sabr.malformed_config` on GET. Discovery does not fetch media, persist results,
apply production configuration, or restart services. Invalid input and failed
requests return nonzero with sanitized errors.
Build the Docker image with:
```sh