What's Fixed
-
Windows: manual cookies rejected after import (Issue #105) —
nlm login --manual --filesaved cookies correctly, but subsequent requests tonotebooklm.google.comwere rejected by Google (302 → login page) because the page-fetch headers included macOS-specific Client Hints (sec-ch-ua-platform: "macOS",sec-ch-ua,sec-ch-ua-mobile). When cookies were captured from a Windows Chrome session, the OS fingerprint mismatch caused Google to reject the session. Removed all threesec-ch-ua*headers (they're optional per spec) and switched to a platform-neutral Linux Chrome UA. Also added multi-pattern CSRF token fallback and amake_console(safe_box=True)factory to preventUnicodeEncodeErrorcrashes on Windowscp1251/cp1252codepage terminals. Thanks to @pakulyaev for the detailed diagnosis! -
Windows: IPv6 WebSocket connection error during
nlm login(Issue #108) — On Windows, Chrome's DevTools debugger binds to127.0.0.1(IPv4), butwebsocket-clientresolveslocalhostto::1(IPv6), causingPermissionError: [WinError 10013]. Added_normalize_ws_url()to rewritews://localhost:→ws://127.0.0.1:at all 4 WebSocket connection sites. Thanks to @theteleporter for the spot-on diagnosis!