lilydjwg / nvchecker

New version checker for software releases
MIT License
428 stars 69 forks source link

feat: add jq source #261

Closed rocka closed 7 months ago

rocka commented 7 months ago

Add a new JSON parser source which uses https://github.com/mwilliamson/jq.py (jq on PyPI, python-jq on Arch Linux), along with some tests and docs.

Tested with following config:

[otf-noto-unicode]
source = "jq"
url = "https://api.github.com/repos/MY1L/Unicode/releases/tags/NotoUni7"
filter = ".assets.[].name"
include_regex = "NotoUnicode-\\d(\\.\\d+)?\\.otf"
from_pattern = "NotoUnicode-(.*)\\.otf"
to_pattern = "\\1"

It shoud output

[I 03-31 15:44:37.623 core:408] otf-noto-unicode: updated to 7.3