Commit Graph

6 Commits

Author SHA1 Message Date
s0len
1e6e5f161c
Fix Nextory: bump X-App-Version, null series, missing urllib3 dep (#25)
* Fix Nextory: bump X-App-Version and handle null series

The Nextory API now rejects the old X-App-Version "5.4.1" with an
AppDeprecateError. Bump it to "2026.05.4" (current Android app version).

Also, the product API can return {"series": null} for standalone books
(not just omit the key entirely). The previous `"series" in product_info`
check passed in that case and we crashed on a NoneType subscript.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Add urllib3 as explicit dependency

grawlix/sources/storytel.py imports urllib3.util.parse_url but urllib3
was only pulled in transitively. Fresh installs (e.g. via uv tool) fail
at import time with ModuleNotFoundError.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Fix invalid escape sequence warning in saxo regex

f"\d+$" produced a SyntaxWarning on Python 3.12 (and will become a
SyntaxError in a future release). The string has no interpolation, so
the raw form r"\d+$" is the right fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 07:50:17 +00:00
Joakim Holm
84dce7c616 Fix pyproject.toml 2023-05-10 10:22:48 +02:00
Joakim Holm
f9919fc48b Fix script 2023-05-08 12:46:21 +02:00
Joakim Holm
1c3f1c4245 Implement Royal Road Source 2023-04-27 23:04:14 +02:00
Joakim Holm
b2381326cb Make http calls async 2023-04-26 21:51:45 +02:00
Joakim Holm
d386cdcd88 Add code 2023-04-06 21:38:19 +02:00