Auto DJ Mode & Rework of Last.fm code (4 Viewers)

Scrobbling to last.fm is working

  • Works but no difference to existing Audioscrobbler plugin

    Votes: 0 0.0%

  • Total voters
    11
Status
Not open for further replies.

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    This is very much WIP but I would like some early feedback on something I have been working on.

    There are two things here
    • New Auto DJ Mode
    • Reworked last.fm scrobbling
    Basically this is http://mantis.team-mediaportal.com/view.php?id=3503

    You can use the Auto DJ without last.fm access but scrobbling obviously needs a last.fm account.

    It is far from polished but basically to use the scrobbling
    • Disable the Audioscrobbler plugin
    • Place both files in C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process
    • Go into setup and open config for lastFMScrobblerTest process plugin
    • Click the authenticate button. This will open up a browser window and take you to the last.fm authentication page. If you are not logged into last.fm then you need to do so and click on the option to authorise MP access to your last.fm account
    • Once done you can close your browser but you must then click on the "Second Step" button to actually setup the access
    Scrobbling will then start as you play tracks. (Scrobbling is currently limited to tracks that exist in the database but I will extend that at some point).
    Auto DJ mode is a little simpler
    • Disable the Audioscrobbler plugin
    • Place both files in C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process
    :)There are however options in config to turn this feature on and off and also a setting to adjust how predictable the chosen tracks will be (lower is more predictable).
    The auto DJ option takes the current track and looks up similar ones on last.fm. It then checks which of these exist in your music database and finally picks one of them at random and adds it to the playlist. It will repeat this for every track played.
    This will will fail and throw errors if you are not connected to the internet, last.fm is not working etc and I need to fix all those features. I just want an indication of whether this is working for people and whether this is worth pursuing any further...
     

    Attachments

    • LastFMScrobblerTest.zip
      10.9 KB
    • LastFMScrobblerTest_v2.zip
      11.9 KB
    • LastFMScrobblerTest_V3.zip
      13.5 KB
    • LastFMScrobblerTest_v4.zip
      13.7 KB
    Last edited:

    mpsam

    Portal Pro
    June 16, 2009
    179
    75
    I tried the Auto DJ. It is a nice feature and it found similar songs. Is it suppose to add all the tracks from the album from which the track is being played?

    Edit: Seems to only do it for the first track played (ie add all the tracks from the album)
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I tried the Auto DJ. It is a nice feature and it found similar songs. Is it suppose to add all the tracks from the album from which the track is being played?

    Edit: Seems to only do it for the first track played (ie add all the tracks from the album)
    This is the standard functionality not the auto DJ mode? By default if you press select on a track it will play all tracks in the folder. If you only want to play a single file then use the play button (or P on a keyboard)
     

    Lbr_Lion

    Extension Designer
    July 19, 2008
    243
    372
    Home Country
    Netherlands Netherlands
    Hi,

    I tried the last.fm scrobbler and Auto DJ Mode option and both options working nicely only I had some difficulties to get the scrobbler option to work:

    Authentication was no problem, but the second step did throw an error with the MP 1.2.3 test build , so tried it also with MP 1.2.2 and it all went well (Only I missed a message that step 2 was successful :) ). and the played tracks are added to last.fm without problem.

    With the Auto DJ Mode I noticed that a previous played track was added a second and even a third time to the playlist.

    Cheers,
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Authentication was no problem, but the second step did throw an error with the MP 1.2.3 test build , so tried it also with MP 1.2.2 and it all went well (Only I missed a message that step 2 was successful :) ). and the played tracks are added to last.fm without problem.
    This needs a bit of work as still not sure the best way to do this two phase authentication process is. (and I have put this in a plugin now but if I finish it, the code will be part of MP itself and just configured as another option in music section)

    With the Auto DJ Mode I noticed that a previous played track was added a second and even a third time to the playlist.
    The actual choice of track to add is pretty rudimentary at the minute. I am thinking about ways to make it better but not sure. Obviously avoiding items already in the playlist is one (but amazingly our existing playlist code does not include a function to say if a track is already in the playlist.

    I guess at this stage I am looking to see that the announcing / scrobbling works and whether the auto DJ is any better than the existing audioscrobbler functions.

    Any input on how to make the auto DJ mode better would be appreciated
     

    IchBinsShort

    Portal Pro
    January 3, 2008
    683
    54
    Home Country
    Germany Germany
    where I can find the Files for the Auto-DJ Mode ? I see only one attached zip File, the LastFMScrobbler
     

    IchBinsShort

    Portal Pro
    January 3, 2008
    683
    54
    Home Country
    Germany Germany
    where I can find the Files for the Auto-DJ Mode ? I see only one attached zip File, the LastFMScrobbler
    All the same files

    Okay I thought there are two different Files because you wrote this "Place both files in C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process" twice ! Now I have put these two Files into the Plugin Process Folder. But in the Configuration only the authentification part works. The second part don't work, nothing happens after I push the button. And when I close the Plugin and open it again I must authenticate the Plugin again. I use Mediaportal 1.2.2. Do you need a Log file ?
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    where I can find the Files for the Auto-DJ Mode ? I see only one attached zip File, the LastFMScrobbler
    All the same files

    Okay I thought there are two different Files because you wrote this "Place both files in C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process" twice ! Now I have put these two Files into the Plugin Process Folder. But in the Configuration only the authentification part works. The second part don't work, nothing happens after I push the button. And when I close the Plugin and open it again I must authenticate the Plugin again. I use Mediaportal 1.2.2. Do you need a Log file ?
    There is notification that the authentication works. So this possibly has worked.

    The auto DJ part does not actually need the authentication anyway but if you are going to test the last.fm code too that would be appreciated. If it is working, you will see songs being announced and scrobbled to your last.fm account
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom