INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: develop a custom scrobble plugin?  (Read 2485 times)

biblio

  • Junior Woodchuck
  • **
  • Posts: 83
develop a custom scrobble plugin?
« on: September 24, 2019, 10:20:32 pm »

Hey,
I maintain Ampache and it has an XML api (https://github.com/ampache/ampache/wiki/XML-API)

All i want to do i have MC send a scrobble request to the Ampache server.

This scrobble consists of:
A Handshake with the server to authenticate:
Code: [Select]
https://music.org/server/xml.server.php?action=handshake&auth=920356674hth6ry45334534575a7f4de2&version=350001
This will return an xml file with session key details (the auth section is your new key)
Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<auth><![CDATA[de569545g456g4564564g5g645g12c7e]]></auth>
<api><![CDATA[400001]]></api>
<session_expire><![CDATA[2019-09-25T14:13:22+10:00]]></session_expire>
<update><![CDATA[2019-09-10T15:58:10+10:00]]></update>
<add><![CDATA[2019-09-25T05:10:19+10:00]]></add>
<clean><![CDATA[2019-09-25T05:09:56+10:00]]></clean>
<songs><![CDATA[257084]]></songs>
<albums><![CDATA[24698]]></albums>
<artists><![CDATA[10446]]></artists>
<playlists><![CDATA[20]]></playlists>
<videos><![CDATA[0]]></videos>
<catalogs><![CDATA[3]]></catalogs>
</root>

Then you send the scrobble with the track details:
Code: [Select]
https://music.org/server/xml.server.php?action=scrobble&auth=de569545g456g4564564g5g645g12c7e&version=350001&title=(string)&artist=(string)&album=(string)&MBtitle=(string)&MBartist=(string)&MBalbum=(string)&time=1569381435&client=JRiver
Which will send you an error or success message:
Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<error code="401"><![CDATA[Session Expired]]></error>
</root>

Should i download the sdk and have a go? it seems like this can't be done with web services?
Logged
Pages: [1]   Go Up