"""neporn.com — KVS (kt_player) direct stream extractor. Patrz app/extractors/tubes/_kvs.py.

Flashvars `video_url` = `function/0/...get_file/...` + `license_code` (silnik jak
freshporno/porn00/yespornvip). Resolve server-side: decode + follow 302 →
`data001.neporn.com/remote_control.php?time=&cv=...`.

Cross-IP test 2026-06-10: finalny URL portable (token time-bound, NIE IP-bound —
VPS resolve → lokalny ISP 206 video/mp4). Mobile gra direct, zero proxy/WebView.
"""
from __future__ import annotations

from app.extractors._models import StreamSource
from app.extractors.tubes import _kvs

_BASE = "https://neporn.com"


def extract(page_url: str, *, timeout: float = 60.0) -> list[StreamSource] | None:
    return _kvs.resolve_kvs(page_url, base_url=_BASE, timeout=timeout)
