Madsonic 6.0 Sneak Peak

actual Release of Madsonic Server
aramisathei
Posts: 11
Joined: 17 Feb 2015, 14:16
Has thanked: 1 time
Been thanked: 3 times

Re: Madsonic 6.0 Sneak Peak

Unread post 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
daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: Madsonic 6.0 Sneak Peak

Unread post by daneren2005 »

What is it that you changed that requires changes from clients?
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: Madsonic 6.0 Sneak Peak

Unread post 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
daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: Madsonic 6.0 Sneak Peak

Unread post by daneren2005 »

Yes that does help a lot thank you! I will make sure that DSub supports the new madsonic.
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: Madsonic 6.0 Sneak Peak

Unread post 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
daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: Madsonic 6.0 Sneak Peak

Unread post 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.
Locked