maubot-media/media_bot/clients
Maddox 2be3d22306 v0.6.3: encode-safe URLs to Seerr (fixes #4)
Queries containing apostrophes/parens/etc were 400ing on Seerr's strict
ajv validator. The SeerrClient _qs() helper percent-encodes the value
correctly, but aiohttp parses the URL string through yarl.URL(), which
normalizes %27 (and other sub-delims) back to the literal character in
the query component. The literal ' then trips Seerr's "must be url
encoded" check.

Fix: pass yarl.URL(url, encoded=True) to bypass yarl's re-normalization
so the RFC 3986 form built by _qs reaches Seerr unchanged.

Reproduced + verified against deployed Seerr v3.2.0 with queries
including "rocky's revenge", "what's up, doc?", "8 1/2".

Closes #4
2026-05-29 20:18:35 -04:00
..
__init__.py Initial commit: media bot v0.1.0 2026-04-28 08:22:38 -04:00
arr.py v0.6.0: Seerr optional, scrubbed personal data, README rewrite 2026-05-03 15:02:50 -04:00
downloads.py v0.2.0: discovery, downloads control, numbered selection 2026-04-28 17:57:50 -04:00
emby.py v0.5.3: !media health covers all 7 backing services 2026-05-03 14:40:11 -04:00
seerr.py v0.6.3: encode-safe URLs to Seerr (fixes #4) 2026-05-29 20:18:35 -04:00