Add more OpenSubsonic fields
- mediaType - musicBrainzId (Child)
This commit is contained in:
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<albumList>
|
||||
<album id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></album>
|
||||
<album id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></album>
|
||||
</albumList>
|
||||
</subsonic-response>
|
||||
|
||||
+12
-10
@@ -8,8 +8,8 @@
|
||||
"id": "1",
|
||||
"name": "album",
|
||||
"artist": "artist",
|
||||
"userRating": 0,
|
||||
"genre": "rock",
|
||||
"userRating": 0,
|
||||
"genres": [
|
||||
{
|
||||
"name": "rock"
|
||||
@@ -29,14 +29,6 @@
|
||||
"track": 1,
|
||||
"year": 1985,
|
||||
"genre": "Rock",
|
||||
"genres": [
|
||||
{
|
||||
"name": "rock"
|
||||
},
|
||||
{
|
||||
"name": "progressive"
|
||||
}
|
||||
],
|
||||
"coverArt": "1",
|
||||
"size": 8421341,
|
||||
"contentType": "audio/flac",
|
||||
@@ -47,8 +39,18 @@
|
||||
"duration": 146,
|
||||
"bitRate": 320,
|
||||
"isVideo": false,
|
||||
"mediaType": "song",
|
||||
"musicBrainzId": "4321",
|
||||
"bpm": 127,
|
||||
"comment": "a comment"
|
||||
"comment": "a comment",
|
||||
"genres": [
|
||||
{
|
||||
"name": "rock"
|
||||
},
|
||||
{
|
||||
"name": "progressive"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<album id="1" name="album" artist="artist" userRating="0" genre="rock" musicBrainzId="1234">
|
||||
<album id="1" name="album" artist="artist" genre="rock" userRating="0" musicBrainzId="1234">
|
||||
<genres name="rock"></genres>
|
||||
<genres name="progressive"></genres>
|
||||
<song id="1" isDir="true" title="title" album="album" artist="artist" track="1" year="1985" genre="Rock" coverArt="1" size="8421341" contentType="audio/flac" suffix="flac" starred="2016-03-02T20:30:00Z" transcodedContentType="audio/mpeg" transcodedSuffix="mp3" duration="146" bitRate="320" isVideo="false" bpm="127" comment="a comment">
|
||||
<song id="1" isDir="true" title="title" album="album" artist="artist" track="1" year="1985" genre="Rock" coverArt="1" size="8421341" contentType="audio/flac" suffix="flac" starred="2016-03-02T20:30:00Z" transcodedContentType="audio/mpeg" transcodedSuffix="mp3" duration="146" bitRate="320" isVideo="false" mediaType="song" musicBrainzId="4321" bpm="127" comment="a comment">
|
||||
<genres name="rock"></genres>
|
||||
<genres name="progressive"></genres>
|
||||
</song>
|
||||
|
||||
+4
-2
@@ -11,10 +11,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
},
|
||||
"position": 123,
|
||||
"username": "user2",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<bookmarks>
|
||||
<bookmark position="123" username="user2" comment="a comment" created="0001-01-01T00:00:00Z" changed="0001-01-01T00:00:00Z">
|
||||
<entry id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></entry>
|
||||
<entry id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></entry>
|
||||
</bookmark>
|
||||
</bookmarks>
|
||||
</subsonic-response>
|
||||
|
||||
@@ -15,14 +15,6 @@
|
||||
"track": 1,
|
||||
"year": 1985,
|
||||
"genre": "Rock",
|
||||
"genres": [
|
||||
{
|
||||
"name": "rock"
|
||||
},
|
||||
{
|
||||
"name": "progressive"
|
||||
}
|
||||
],
|
||||
"coverArt": "1",
|
||||
"size": 8421341,
|
||||
"contentType": "audio/flac",
|
||||
@@ -33,8 +25,18 @@
|
||||
"duration": 146,
|
||||
"bitRate": 320,
|
||||
"isVideo": false,
|
||||
"mediaType": "song",
|
||||
"musicBrainzId": "4321",
|
||||
"bpm": 127,
|
||||
"comment": "a comment"
|
||||
"comment": "a comment",
|
||||
"genres": [
|
||||
{
|
||||
"name": "rock"
|
||||
},
|
||||
{
|
||||
"name": "progressive"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"id": "1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<directory id="1" name="N">
|
||||
<child id="1" isDir="true" title="title" album="album" artist="artist" track="1" year="1985" genre="Rock" coverArt="1" size="8421341" contentType="audio/flac" suffix="flac" starred="2016-03-02T20:30:00Z" transcodedContentType="audio/mpeg" transcodedSuffix="mp3" duration="146" bitRate="320" isVideo="false" bpm="127" comment="a comment">
|
||||
<child id="1" isDir="true" title="title" album="album" artist="artist" track="1" year="1985" genre="Rock" coverArt="1" size="8421341" contentType="audio/flac" suffix="flac" starred="2016-03-02T20:30:00Z" transcodedContentType="audio/mpeg" transcodedSuffix="mp3" duration="146" bitRate="320" isVideo="false" mediaType="song" musicBrainzId="4321" bpm="127" comment="a comment">
|
||||
<genres name="rock"></genres>
|
||||
<genres name="progressive"></genres>
|
||||
</child>
|
||||
|
||||
+4
-2
@@ -9,10 +9,12 @@
|
||||
{
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
],
|
||||
"id": "",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<directory id="" name="">
|
||||
<child id="1" isDir="false" isVideo="false" bpm="0" comment=""></child>
|
||||
<child id="1" isDir="false" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></child>
|
||||
</directory>
|
||||
</subsonic-response>
|
||||
|
||||
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
],
|
||||
"id": "1",
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<directory id="1" name="N">
|
||||
<child id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></child>
|
||||
<child id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></child>
|
||||
</directory>
|
||||
</subsonic-response>
|
||||
|
||||
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
],
|
||||
"current": "111",
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<playQueue current="111" position="243" username="user1" changed="0001-01-01T00:00:00Z" changedBy="a_client">
|
||||
<entry id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></entry>
|
||||
<entry id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></entry>
|
||||
</playQueue>
|
||||
</subsonic-response>
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
"title": "title",
|
||||
"album": "album",
|
||||
"artist": "artist",
|
||||
"genres": [],
|
||||
"duration": 120,
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
@@ -26,11 +28,13 @@
|
||||
"title": "title 2",
|
||||
"album": "album",
|
||||
"artist": "artist",
|
||||
"genres": [],
|
||||
"duration": 300,
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
],
|
||||
"id": "ABC123",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<shares>
|
||||
<share id="ABC123" url="http://localhost/p/ABC123" description="Check it out!" username="deluan" created="0001-01-01T00:00:00Z" expires="0001-01-01T00:00:00Z" lastVisited="0001-01-01T00:00:00Z" visitCount="2">
|
||||
<entry id="1" isDir="false" title="title" album="album" artist="artist" duration="120" isVideo="false" bpm="0" comment=""></entry>
|
||||
<entry id="2" isDir="false" title="title 2" album="album" artist="artist" duration="300" isVideo="false" bpm="0" comment=""></entry>
|
||||
<entry id="1" isDir="false" title="title" album="album" artist="artist" duration="120" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></entry>
|
||||
<entry id="2" isDir="false" title="title 2" album="album" artist="artist" duration="300" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></entry>
|
||||
</share>
|
||||
</shares>
|
||||
</subsonic-response>
|
||||
|
||||
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<similarSongs>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></song>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></song>
|
||||
</similarSongs>
|
||||
</subsonic-response>
|
||||
|
||||
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<similarSongs2>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></song>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></song>
|
||||
</similarSongs2>
|
||||
</subsonic-response>
|
||||
|
||||
+4
-2
@@ -10,10 +10,12 @@
|
||||
"id": "1",
|
||||
"isDir": false,
|
||||
"title": "title",
|
||||
"genres": [],
|
||||
"isVideo": false,
|
||||
"mediaType": "",
|
||||
"musicBrainzId": "",
|
||||
"bpm": 0,
|
||||
"comment": ""
|
||||
"comment": "",
|
||||
"genres": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0" openSubsonic="true">
|
||||
<topSongs>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment=""></song>
|
||||
<song id="1" isDir="false" title="title" isVideo="false" mediaType="" musicBrainzId="" bpm="0" comment=""></song>
|
||||
</topSongs>
|
||||
</subsonic-response>
|
||||
|
||||
Reference in New Issue
Block a user