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 » 26 Aug 2015, 13:51

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 » 29 Aug 2015, 22:07

What is it that you changed that requires changes from clients?

User avatar
Madsonic
Administrator
Administrator
Posts: 960
Joined: 07 Dec 2012, 03:58
Has thanked: 1147 times
Been thanked: 448 times

Re: Madsonic 6.0 Sneak Peak

Unread post by Madsonic » 02 Sep 2015, 03:10

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 » 02 Sep 2015, 04:10

Yes that does help a lot thank you! I will make sure that DSub supports the new madsonic.

User avatar
Madsonic
Administrator
Administrator
Posts: 960
Joined: 07 Dec 2012, 03:58
Has thanked: 1147 times
Been thanked: 448 times

Re: Madsonic 6.0 Sneak Peak

Unread post by Madsonic » 02 Sep 2015, 04:41

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 » 07 Sep 2015, 23:06

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