maubot-media/media_bot
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
..
clients v0.6.3: encode-safe URLs to Seerr (fixes #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
bot.py v0.6.2: Sunday cleanup recap as separate follow-up message 2026-05-11 20:39:39 -04:00
db.py v0.4.2: SQLite, subscriptions, Sonarr webhook, daily digest 2026-04-28 19:13:19 -04:00