INNER CODE UNIT · Python

parse_data_sync_id

cwuom/NeriPlayer · tools_pub/ytmusic_api_probe.py:382

def parse_data_sync_id(value: str) -> tuple[str, str]:
    if not value:
        return "", ""
    first, second = (value.split("||", 1) + [""])[:2]
    if second:
        return first, second
    return "", first


def build_sid_authorization(
    scheme: str,
    sid: str,
    origin: str,
    now_epoch_seconds: int,
    user_session_id: str = "",
) -> str:
    extra_values: list[str] = []
    if user_session_id:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…