Page 3 of 3
Re: Madsonic 6.0 Sneak Peak
Posted: 26 Aug 2015, 13:51
by aramisathei
The project clearly isn't dead.
There's a changelog posted every two weeks or so.
It looks like it's coming along well.
As for anyone who wants to test it, there's a download link on the main download page:
http://beta.madsonic.org/pages/downloadBeta.jsp
Re: Madsonic 6.0 Sneak Peak
Posted: 29 Aug 2015, 22:07
by daneren2005
What is it that you changed that requires changes from clients?
Re: Madsonic 6.0 Sneak Peak
Posted: 02 Sep 2015, 03:10
by Madsonic
daneren2005 wrote:What is it that you changed that requires changes from clients?
Hi Scott,
This changes should fix
Madsonic REST 2.0.0 and
Subsonic REST 5.3 support
AbstractParser.java
Code: Select all
protected String getElementName() {
String name = parser.getName();
if ("subsonic-response".equals(name) || "madsonic-response".equals(name)) {
rootElementFound = true;
String version = get("version");
if (version != null) {
ServerInfo server = new ServerInfo();
server.setRestVersion(new Version(version));
if ("madsonic-response".equals(name)) {
server.setRestType(ServerInfo.TYPE_MADSONIC);
}
if ("1.10.5".equals(version)) {
server.setRestType(ServerInfo.TYPE_MADSONIC);
}
if("madsonic".equals(get("type"))) {
server.setRestType(ServerInfo.TYPE_MADSONIC);
}
server.saveServerInfo(context, instance);
}
}
return name;
}
util.java
Code: Select all
ServerInfo server = new ServerInfo();
if (server.isStockSubsonic()) {
builder.append("&v=").append(Constants.REST_PROTOCOL_VERSION_SUBSONIC);
} else {
builder.append("&v=").append(Constants.REST_PROTOCOL_VERSION_MADSONIC);
}
builder.append("&c=").append(Constants.REST_CLIENT_ID);
return builder.toString();
Constants.java
Code: Select all
public static final String REST_PROTOCOL_VERSION_SUBSONIC = "1.2.0";
public static final String REST_PROTOCOL_VERSION_MADSONIC = "2.0.0";
RESTMusicService.java
some slightly name corrections for this API names
http://beta.madsonic.org/pages/api.jsp#top
Code: Select all
getArtistInfo, getArtistInfoID3,
getSimilarSongs, getSimilarSongsID3,
getSimilarArtists, getSimilarArtistsID3,
search, searchID3,
getStarred, getStarredID3,
getAlbumList, getAlbumListID3
you can also use the new logon methods with Madsonic -->
http://beta.madsonic.org/pages/api.jsp#Authentication
Hope this help you.
best regards,
Martin
Re: Madsonic 6.0 Sneak Peak
Posted: 02 Sep 2015, 04:10
by daneren2005
Yes that does help a lot thank you! I will make sure that DSub supports the new madsonic.
Re: Madsonic 6.0 Sneak Peak
Posted: 02 Sep 2015, 04:41
by Madsonic
btw,
Technical Madsonic supports all Subsonic REST API 1.13 calls,
and should be compatibility to all your new implemented features.
Bookmarks, Artistinfo, load/save PlayQueue, ...
best regards,
Martin
Re: Madsonic 6.0 Sneak Peak
Posted: 07 Sep 2015, 23:06
by daneren2005
How exactly are you calculating that the salt/token is valid? Using the exact same code which works against a stock Subsonic server it fails saying wrong username/password.