Madsonic 6.0 Sneak Peak

actual Release of Madsonic Server

Re: Madsonic 6.0 Sneak Peak

Unread postby 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
aramisathei
 
Posts: 11
Joined: 17 Feb 2015, 14:16
Has thanked: 2 times
Been thanked: 5 times

Re: Madsonic 6.0 Sneak Peak

Unread postby daneren2005 » 29 Aug 2015, 22:07

What is it that you changed that requires changes from clients?
daneren2005
Developer
Developer
 
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 2 times
Been thanked: 11 times

Re: Madsonic 6.0 Sneak Peak

Unread postby Madevil » 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
User avatar
Madevil
Administrator
Administrator
 
Posts: 942
Joined: 07 Dec 2012, 03:58
Has thanked: 1339 times
Been thanked: 964 times

Re: Madsonic 6.0 Sneak Peak

Unread postby daneren2005 » 02 Sep 2015, 04:10

Yes that does help a lot thank you! I will make sure that DSub supports the new madsonic.
daneren2005
Developer
Developer
 
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 2 times
Been thanked: 11 times

Re: Madsonic 6.0 Sneak Peak

Unread postby Madevil » 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
User avatar
Madevil
Administrator
Administrator
 
Posts: 942
Joined: 07 Dec 2012, 03:58
Has thanked: 1339 times
Been thanked: 964 times

Re: Madsonic 6.0 Sneak Peak

Unread postby 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.
daneren2005
Developer
Developer
 
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 2 times
Been thanked: 11 times

Previous

Return to Madsonic 6.x

Who is online

Users browsing this forum: No registered users and 1 guest