sonda/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi e752d15536 feat(images): free photos of artists from Wikimedia Commons
- GET and HEAD /artists/{id}/image serve a free picture of an artist as a JPEG
  (size=small 300 px or large 1000 px, token in the query allowed for an <img>), and
  GET /artists/{id}/image/credit gives the author, the licence and the page of the file,
  to be shown next to it.
- New provider "commons" (off by default, no key, contact in the User-Agent), which also
  needs MusicBrainz on. The way to the picture uses ids only, never a name: the artist's
  MusicBrainz id, the Wikidata item MusicBrainz links to it, the file Wikidata names for
  it (P18), Commons for its licence, and a 960 px copy from a Wikimedia picture host.
- Only free licences: public domain, CC0, CC BY and CC BY-SA. Non-commercial,
  no-derivatives, GFDL alone, fair use and unknown licences are refused, since a copy is
  kept. The author is plain text, the licence address is kept only on creativecommons.org,
  and the download only from https thumb.wikimedia.org or upload.wikimedia.org.
- Built on the first request, kept in the data folder: 30 days, or a week when there is no
  free picture; an older copy is served when Commons cannot be reached; a failure is not
  remembered. Credit changes change the ETag.
- Removing the provider's data forgets the records and deletes the files; a read that started
  before it is not saved over it.
- images table gets the credit (migration 0015); the purge reports images.
- Spec, contract test, README updated; the facts of the real APIs are written down.

Closes #41
2026-11-11 22:03:32 +01:00
..
about fix(about): unusable pages fall through, MusicBrainz switch, merged items 2026-11-11 21:45:20 +01:00
api feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
auth fix(auth): reuse the account, quiet aborted requests, more tests 2026-11-11 19:29:39 +01:00
catalog fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +01:00
config feat(about): artist descriptions from Wikipedia 2026-11-11 21:36:27 +01:00
discover feat(feedback): a wishlist and "not interested" 2026-11-11 20:11:18 +01:00
discovery feat(discover): artists I may like, with a score I can explain 2026-11-11 19:42:09 +01:00
feedback feat(feedback): a wishlist and "not interested" 2026-11-11 20:11:18 +01:00
images feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
library fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
listening fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
providers feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
storage feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
streaming feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
taste feat(discover): artists I may like, with a score I can explain 2026-11-11 19:42:09 +01:00
usersettings feat(settings): my own settings, starting with Discover from my listening 2026-11-11 19:16:26 +01:00