Add ReplayGain to OpenSubsonic API Child response

This commit is contained in:
Deluan
2023-12-02 15:28:44 -05:00
parent 812dc2090f
commit 4641dc0b2b
25 changed files with 89 additions and 24 deletions
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
]
}
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></album>
<album id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</album>
</albumList>
</subsonic-response>
@@ -53,7 +53,15 @@
{
"name": "progressive"
}
]
],
"replayGain": {
"trackGain": 1,
"albumGain": 2,
"trackPeak": 3,
"albumPeak": 4,
"baseGain": 5,
"fallbackGain": 6
}
}
]
}
@@ -5,6 +5,7 @@
<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" sortName="sorted song" mediaType="song" musicBrainzId="4321">
<genres name="rock"></genres>
<genres name="progressive"></genres>
<replayGain trackGain="1" albumGain="2" trackPeak="3" albumPeak="4" baseGain="5" fallbackGain="6"></replayGain>
</song>
</album>
</subsonic-response>
@@ -17,7 +17,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
},
"position": 123,
"username": "user2",
@@ -1,7 +1,9 @@
<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="" sortName="" mediaType="" musicBrainzId=""></entry>
<entry id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</entry>
</bookmark>
</bookmarks>
</subsonic-response>
@@ -37,7 +37,15 @@
{
"name": "progressive"
}
]
],
"replayGain": {
"trackGain": 1,
"albumGain": 2,
"trackPeak": 3,
"albumPeak": 4,
"baseGain": 5,
"fallbackGain": 6
}
}
],
"id": "1",
@@ -3,6 +3,7 @@
<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" sortName="" mediaType="song" musicBrainzId="4321">
<genres name="rock"></genres>
<genres name="progressive"></genres>
<replayGain trackGain="1" albumGain="2" trackPeak="3" albumPeak="4" baseGain="5" fallbackGain="6"></replayGain>
</child>
</directory>
</subsonic-response>
@@ -15,7 +15,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
],
"id": "",
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></child>
<child id="1" isDir="false" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</child>
</directory>
</subsonic-response>
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
],
"id": "1",
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></child>
<child id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</child>
</directory>
</subsonic-response>
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
],
"current": "111",
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></entry>
<entry id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</entry>
</playQueue>
</subsonic-response>
@@ -21,7 +21,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
},
{
"id": "2",
@@ -36,7 +37,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
],
"id": "ABC123",
@@ -1,8 +1,12 @@
<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="" sortName="" mediaType="" musicBrainzId=""></entry>
<entry id="2" isDir="false" title="title 2" album="album" artist="artist" duration="300" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId=""></entry>
<entry id="1" isDir="false" title="title" album="album" artist="artist" duration="120" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</entry>
<entry id="2" isDir="false" title="title 2" album="album" artist="artist" duration="300" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</entry>
</share>
</shares>
</subsonic-response>
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
]
}
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></song>
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</song>
</similarSongs>
</subsonic-response>
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
]
}
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></song>
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</song>
</similarSongs2>
</subsonic-response>
@@ -16,7 +16,8 @@
"sortName": "",
"mediaType": "",
"musicBrainzId": "",
"genres": []
"genres": [],
"replayGain": {}
}
]
}
@@ -1,5 +1,7 @@
<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="" sortName="" mediaType="" musicBrainzId=""></song>
<song id="1" isDir="false" title="title" isVideo="false" bpm="0" comment="" sortName="" mediaType="" musicBrainzId="">
<replayGain></replayGain>
</song>
</topSongs>
</subsonic-response>