mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-01 06:07:04 +02:00
Unified code for backend clients and tests
This commit is contained in:
parent
9316838d59
commit
aa01ae1342
11 changed files with 220 additions and 42 deletions
47
backends/maloja/testdata/scrobbles.json
vendored
Normal file
47
backends/maloja/testdata/scrobbles.json
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"status": "ok",
|
||||
"list": [
|
||||
{
|
||||
"time": 1699574369,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Hazeshuttle"
|
||||
],
|
||||
"title": "Way to Eden",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Hazeshuttle"
|
||||
],
|
||||
"albumtitle": "Hazeshuttle"
|
||||
},
|
||||
"length": 567
|
||||
},
|
||||
"duration": 558,
|
||||
"origin": "client:Funkwhale"
|
||||
},
|
||||
{
|
||||
"time": 1699573362,
|
||||
"track": {
|
||||
"artists": [
|
||||
"Hazeshuttle"
|
||||
],
|
||||
"title": "Homosativa",
|
||||
"album": {
|
||||
"artists": [
|
||||
"Hazeshuttle"
|
||||
],
|
||||
"albumtitle": "Hazeshuttle"
|
||||
},
|
||||
"length": 1007
|
||||
},
|
||||
"duration": null,
|
||||
"origin": "client:Funkwhale"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"page": 0,
|
||||
"perpage": 2,
|
||||
"next_page": "/apis/mlj_1/scrobbles?page=1&perpage=2",
|
||||
"prev_page": null
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue