Skip to content

Commit d89afab

Browse files
committed
bookmark docs
1 parent de04cb1 commit d89afab

14 files changed

Lines changed: 425 additions & 1047 deletions

docs/json-responses/bookmark (with include).json

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,62 @@
22
"id": "4",
33
"owner": "user",
44
"object_type": "song",
5-
"object_id": "64",
6-
"position": 10,
7-
"client": "client",
5+
"object_id": "103",
6+
"position": 0,
7+
"client": "python3-ampache",
88
"creation_date": 1670202706,
9-
"update_date": 1698974919,
9+
"update_date": 1721607269,
1010
"song": [
1111
{
12-
"id": "64",
13-
"title": "Black&BlueSmoke",
14-
"name": "Black&BlueSmoke",
12+
"id": "103",
13+
"title": "In The Seven Woods (Instrumental Re-Recording)",
14+
"name": "In The Seven Woods (Instrumental Re-Recording)",
1515
"artist": {
16-
"id": "2",
17-
"name": "Synthetic",
16+
"id": "16",
17+
"name": "CARN\u00daN",
1818
"prefix": null,
19-
"basename": "Synthetic"
19+
"basename": "CARN\u00daN"
2020
},
2121
"artists": [
2222
{
23-
"id": "2",
24-
"name": "Synthetic",
23+
"id": "16",
24+
"name": "CARN\u00daN",
2525
"prefix": null,
26-
"basename": "Synthetic"
26+
"basename": "CARN\u00daN"
2727
}
2828
],
2929
"album": {
30-
"id": "2",
31-
"name": "Colorsmoke EP",
30+
"id": "10",
31+
"name": "CARN\u00daN - MALKUTH (Demo 1996)",
3232
"prefix": null,
33-
"basename": "Colorsmoke EP"
33+
"basename": "CARN\u00daN - MALKUTH (Demo 1996)"
3434
},
3535
"albumartist": {
36-
"id": "2",
37-
"name": "Synthetic",
36+
"id": "16",
37+
"name": "CARN\u00daN",
3838
"prefix": null,
39-
"basename": "Synthetic"
39+
"basename": "CARN\u00daN"
4040
},
4141
"disk": 1,
4242
"disksubtitle": null,
43-
"track": 1,
44-
"filename": "\/mnt\/files-music\/ampache-test\/music\/Synthetic\/Synthetic_-_Colorsmoke_EP-20k217-2007\/01-Synthetic_-_BlackBlueSmokeDM20k22kh.wma",
45-
"genre": [
46-
{
47-
"id": "1",
48-
"name": "Electronic"
49-
}
50-
],
43+
"track": 7,
44+
"filename": "\/mnt\/files-music\/ampache-test\/music\/Carn\u00fan\/Malkuth (Demo1996)\/07InTheSevenWoods_InstrumentalReRecording.ogg",
45+
"genre": [],
5146
"playlisttrack": 1,
52-
"time": 500,
53-
"year": 2007,
54-
"format": "wma",
47+
"time": 452,
48+
"year": 1996,
49+
"format": "ogg",
5550
"stream_format": "mp3",
56-
"bitrate": 20627,
51+
"bitrate": 138338,
5752
"stream_bitrate": 32000,
58-
"rate": 22050,
59-
"mode": "cbr",
60-
"mime": "audio\/x-ms-wma",
53+
"rate": 44100,
54+
"mode": "vbr",
55+
"mime": "application\/ogg",
6156
"stream_mime": "audio\/mpeg",
62-
"url": "https:\/\/music.com.au\/play\/index.php?ssid=cfj3f237d563f479f5223k23189dbb34&type=song&oid=64&uid=4&transcode_to=mp3&bitrate=32000&player=api&name=Synthetic%20-%20Black-BlueSmoke.mp3",
63-
"size": 1298295,
57+
"url": "https:\/\/music.com.au\/play\/index.php?ssid=cfj3f237d563f479f5223k23189dbb34&type=song&oid=103&uid=2&transcode_to=mp3&bitrate=32000&player=api&name=CARN-N%20-%20In%20The%20Seven%20Woods%20-Instrumental%20Re-Recording-.mp3",
58+
"size": 7826238,
6459
"mbid": null,
65-
"art": "https:\/\/music.com.au\/image.php?object_id=2&object_type=album&name=art.png",
60+
"art": "https:\/\/music.com.au\/image.php?object_id=10&object_type=album&name=art.jpg",
6661
"has_art": true,
6762
"flag": false,
6863
"rating": null,
@@ -71,15 +66,15 @@
7166
"catalog": 1,
7267
"composer": null,
7368
"channels": 2,
74-
"comment": "Made with Sony ACID 5",
69+
"comment": "Visit http:\/\/irish-metal.bandcamp.com;http:\/\/archive.org\/details\/Carnn_-_Malkuth_Demo1996",
7570
"license": "",
76-
"publisher": "20kbps rec.",
71+
"publisher": "archive.org",
7772
"language": null,
7873
"lyrics": null,
7974
"replaygain_album_gain": null,
8075
"replaygain_album_peak": null,
81-
"replaygain_track_gain": null,
82-
"replaygain_track_peak": null,
76+
"replaygain_track_gain": -12.21,
77+
"replaygain_track_peak": 1,
8378
"r128_album_gain": null,
8479
"r128_track_gain": null
8580
}

docs/json-responses/bookmark.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"id": "4",
33
"owner": "user",
44
"object_type": "song",
5-
"object_id": "64",
6-
"position": 10,
7-
"client": "client",
5+
"object_id": "103",
6+
"position": 0,
7+
"client": "python3-ampache",
88
"creation_date": 1670202706,
9-
"update_date": 1698974919
9+
"update_date": 1721607269
1010
}
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"error": {
3-
"errorCode": "4704",
4-
"errorAction": "bookmark_create",
5-
"errorType": "filter",
6-
"errorMessage": "Not Found: 33"
7-
}
2+
"id": "4",
3+
"owner": "user",
4+
"object_type": "song",
5+
"object_id": "103",
6+
"position": 0,
7+
"client": "python3-ampache",
8+
"creation_date": 1670202706,
9+
"update_date": 1721607269
810
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"success": "Deleted Bookmark: 12"
2+
"success": "Deleted Bookmark: 2"
33
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "10",
2+
"id": "2",
33
"owner": "user",
44
"object_type": "song",
55
"object_id": "54",
66
"position": 10,
7-
"client": "AmpacheAPI",
7+
"client": "python3-ampache",
88
"creation_date": 1670202706,
9-
"update_date": 1721271339
9+
"update_date": 1721607269
1010
}

0 commit comments

Comments
 (0)