Same proper re-investigation as freshporno (DevTools + Bright Data residential cross-IP + curl_cffi browser TLS). porn00's final CDN fe.porn00.org/...?token=&expires= is PORTABLE cross-IP (token resolved from one residential IP replays 206 from a different Bright Data residential IP) and only rejects non-browser TLS (plain curl 403, curl_cffi chrome 206). In #20 I tested the final URL with a standalone plain curl, got 403, wrongly concluded "IP-bound" and left it on WebView (and before that it used force_proxy, which violated the no-proxy stance). porn00 flashvars are plain get_file (already decoded, no function/0 prefix), so extend _kvs._URL_RE to match both forms — real_url passes plain URLs through unchanged, _resolve_get_file follows the 302 in-session. porn00.py becomes a thin _kvs wrapper. Verified no regression for the function/0 tubes (yespornvip/pornditt/ freshporno still resolve 3x mp4). Result: porn00 native multi-quality, mobile_direct, zero proxy/WebView. fpoxxx and pornxp were re-tested the same way and ARE genuinely IP-bound (403 from a different residential IP — their token binds to the resolver IP), so they correctly stay on the WebView fallback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
1.2 KiB
Python
24 lines
1.2 KiB
Python
"""porn00.org — KVS (kt_player) direct stream extractor. Patrz app/extractors/tubes/_kvs.py.
|
|
|
|
flashvars `video_url`/`video_alt_url` to PLAIN get_file (już zdekodowany, bez function/0):
|
|
`https://www.porn00.org/get_file/3/<hash>/.../<id>.mp4` + `license_code`. _kvs._URL_RE
|
|
łapie też ten format; real_url przepuszcza plain bez dekodowania; follow 302 →
|
|
`fe.porn00.org/videos/.../<id>.mp4?token=&expires=` (206 video/mp4).
|
|
|
|
2026-06-04 (DevTools + cross-IP re-test, naprawia błąd z #20): finalny CDN jest
|
|
**portable cross-IP** (token time-bound nie IP-bound — zweryfikowane przez Bright Data
|
|
residential proxy: get_file z jednego IP, fetch finalnego z innego IP → 206). W #20
|
|
testowałem finalny URL plain-curl-em → 403 → błędnie „IP-bound" → WebView. Wymaga
|
|
browser-TLS (curl_cffi chrome → 206; plain curl → 403). _kvs używa curl_cffi chrome,
|
|
mobile (ExoPlayer) gra direct. Native, multi-quality, ZERO proxy (wcześniej force_proxy).
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from app.extractors._models import StreamSource
|
|
from app.extractors.tubes import _kvs
|
|
|
|
_BASE = "https://www.porn00.org"
|
|
|
|
|
|
def extract(page_url: str, *, timeout: float = 60.0) -> list[StreamSource] | None:
|
|
return _kvs.resolve_kvs(page_url, base_url=_BASE, timeout=timeout)
|