Markus Heiser
36a6f9c95f
[fix] engine: Library of Congress - image & thumb links
...
The properties `item.service_medium` and `item.thumb_gallery` are not given for
every result item. It is more reliable to use the first (thumb) and
last (image) URL in the list of of URLs in `image_url`.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-26 09:36:59 +01:00
Markus Heiser
c4b874e9b0
[fix] engine Library of Congress: fix API URL loc.gov -> www.loc.gov
...
Avoid HTTP 404 and redirects. Requests to the JSON/YAML API use the base url [1]
https://www.loc.gov/{endpoint}/?fo=json
[1] https://www.loc.gov/apis/json-and-yaml/requests/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-23 13:02:24 +01:00
Bnyro
f182abd6f8
[mod] library of congress: fix engine
2023-09-11 19:42:31 +02:00
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27 09:26:22 +01:00
mrwormo
051da88328
Add Library of Congress engine
2021-02-09 12:45:39 +01:00