scover
Install
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Use
- Run service
python app.py
- Request track metadata
curl "http://host:5003/metadata?artist=Coldplay&track=Yellow"
Output example
{
"artist": "Coldplay",
"cover_art": {
"images": [
{
"approved": true,
"back": false,
"comment": "",
"edit": 25519124,
"front": true,
"id": "6124185897",
"image": "http://coverartarchive.org/release/f9947ec9-c154-4d69-88c2-736f5b772e94/6124185897.png",
"thumbnails": {
"large": "http://coverartarchive.org/release/f9947ec9-c154-4d69-88c2-736f5b772e94/6124185897-500.jpg",
"small": "http://coverartarchive.org/release/f9947ec9-c154-4d69-88c2-736f5b772e94/6124185897-250.jpg"
},
"types": [
"Front"
]
}
],
"release": "http://musicbrainz.org/release/f9947ec9-c154-4d69-88c2-736f5b772e94"
},
"metadata": {
"artist-credit": [
{
"artist": {
"aliases": [
{
"begin-date": null,
"end-date": null,
"locale": null,
"name": "\ucf5c\ub4dc\ud50c\ub808\uc774",
"primary": null,
"sort-name": "\ucf5c\ub4dc\ud50c\ub808\uc774",
"type": "Search hint",
"type-id": "1937e404-b981-3cb7-8151-4c86ebfc8d8e"
},
{
"begin-date": null,
"end-date": null,
"locale": "ja",
"name": "\u30b3\u30fc\u30eb\u30c9\u30d7\u30ec\u30a4",
"primary": null,
"sort-name": "\u30b3\u30fc\u30eb\u30c9\u30d7\u30ec\u30a4",
"type": "Artist name",
"type-id": "894afba6-2816-3c24-8072-eadb66bd04bc"
},
{
"begin-date": null,
"end-date": null,
"locale": null,
"name": "Cold Play",
"primary": null,
"sort-name": "Cold Play",
"type": "Search hint",
"type-id": "1937e404-b981-3cb7-8151-4c86ebfc8d8e"
},
{
"begin-date": null,
"end-date": "1998",
"locale": null,
"name": "The Coldplay",
"primary": null,
"sort-name": "Coldplay, The",
"type": "Artist name",
"type-id": "894afba6-2816-3c24-8072-eadb66bd04bc"
}
],
"id": "cc197bad-dc9c-440d-a5b5-d52ba2e14234",
"name": "Coldplay",
"sort-name": "Coldplay"
},
"name": "Coldplay"
}
],
"disambiguation": "live, 2005-09-25: Austin City Limits Music Festival, Zilker Park, Austin, TX, USA",
"id": "ccbed18f-559b-42a6-91d6-f2a513849f11",
"length": 309000,
"releases": [
{
"artist-credit": [
{
"artist": {
"id": "cc197bad-dc9c-440d-a5b5-d52ba2e14234",
"name": "Coldplay",
"sort-name": "Coldplay"
},
"name": "Coldplay"
}
],
"count": 1,
"id": "f9947ec9-c154-4d69-88c2-736f5b772e94",
"media": [
{
"position": 1,
"track": [
{
"id": "859be74d-6e40-379e-a9e7-2a9a665acfc2",
"length": 309000,
"number": "2",
"title": "Yellow"
}
],
"track-count": 10,
"track-offset": 1
}
],
"release-group": {
"id": "20fca74f-a89c-3b25-bf14-8f0d768895ef",
"primary-type": "Album",
"primary-type-id": "f529b476-6e62-324f-b0aa-1f3e33d313fc",
"secondary-type-ids": [
"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0"
],
"secondary-types": [
"Live"
],
"title": "2005-09-25: Austin City Limits Music Festival, Zilker Park, Austin, TX, USA",
"type-id": "6fd474e2-6b58-3102-9d17-d6f7eb7da0a0"
},
"status": "Bootleg",
"status-id": "1156806e-d06a-38bd-83f0-cf2284a808b9",
"title": "2005-09-25: Austin City Limits Music Festival, Zilker Park, Austin, TX, USA",
"track-count": 10
},
{
"artist-credit": [
{
"artist": {
"id": "cc197bad-dc9c-440d-a5b5-d52ba2e14234",
"name": "Coldplay",
"sort-name": "Coldplay"
},
"name": "Coldplay"
}
],
"count": 1,
"id": "c2444f07-ddc3-42d6-850e-1c9ee369323c",
"media": [
{
"position": 1,
"track": [
{
"id": "c682a83b-6085-3886-a575-633755bf194e",
"length": 309000,
"number": "2",
"title": "Yellow"
}
],
"track-count": 12,
"track-offset": 1
}
],
"release-group": {
"id": "396037a2-ef52-3421-87d0-3d09657ec400",
"primary-type": "Album",
"primary-type-id": "f529b476-6e62-324f-b0aa-1f3e33d313fc",
"secondary-type-ids": [
"6fd474e2-6b58-3102-9d17-d6f7eb7da0a0"
],
"secondary-types": [
"Live"
],
"title": "2005-12-09: Austin, TX, USA",
"type-id": "6fd474e2-6b58-3102-9d17-d6f7eb7da0a0"
},
"status": "Bootleg",
"status-id": "1156806e-d06a-38bd-83f0-cf2284a808b9",
"title": "2005-12-09: Austin, TX, USA",
"track-count": 12
}
],
"score": 100,
"title": "Yellow",
"video": null
},
"track": "Yellow"
}