Last.FM Rework and Auto DJ mode (2 Viewers)

PrplHaz4

Portal Pro
August 9, 2007
57
6
Boston, MA
Home Country
United States of America United States of America
OK Think I have fixed it....
V7 uploading

Awesome man, so far so good!! I haven't had it stop during now playing at all since using v7.

In Now Playing - the similar tracks section isn't showing anything, where I thought it was before - is this a bug or just not implemented yet?
 

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    In Now Playing - the similar tracks section isn't showing anything, where I thought it was before - is this a bug or just not implemented yet?
    This won't work for last fm radio tracks. Will see what I can do but combining last fm and local tracks will not work very well (at all) currently
     

    PrplHaz4

    Portal Pro
    August 9, 2007
    57
    6
    Boston, MA
    Home Country
    United States of America United States of America
    This won't work for last fm radio tracks. Will see what I can do but combining last fm and local tracks will not work very well (at all) currently


    haha...sorry, I'm just confused...don't want to make more work than I already have...Just realizing my request would create the need for some sort of hybrid/frankenstein playlist where local and last.fm were aware of each other.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    haha...sorry, I'm just confused...don't want to make more work than I already have...Just realizing my request would create the need for some sort of hybrid/frankenstein playlist where local and last.fm were aware of each other.
    Not such a bad idea though... might not be possible but will think of how I could do something like this
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    @HomeY
    I have just pushed a commit that will allow filtering of autoDJ content.
    Currently it is a bit crude but if you add the autoDJFilter line below to mediaportal.xml it will never select Christmas song
    XML:
      <section name="lastfm:test">
    	<entry name="autoDJ">yes</entry>
    	<entry name="autoDJFilter"><![CDATA[and strGenre <> 'Christmas']]></entry>

    I will extend this so you can force comparisons to the original track (so you can say only chose tracks with the same genre, within 5 years either side) as well as just excluding stuff
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Just gave it a try Mike, but it doesn't seem to work (or i'm doing something wrong).

    This is what i added to MediaPortal.xml:
    XML:
      <section name="lastfm:test">
    	<entry name="autoDJ">yes</entry>
    	<entry name="autoDJFilter"><![CDATA[and strGenre <> 'Holiday']]></entry>
      </section>
    I checked all my tags yesterday, and removed the 'Christmas' tag and replaced it with the proper 'Holiday' tag, so added that in the .xml

    I'm curious: does it skip only songs with a single 'Holiday' tag, or should it skip every song that has that tag included?

    Example of tags:
    Bublé_Tags.PNG

    As you can see, this album has 4 genres, including 'Holiday', so i thought it would be easiest to test with starting a Christmas song :) but my playlist gets filled with Christmas songs :(

    Will play with it a bit and post some logs after that.
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    OK, tested some more and started with another Christmas song and now it went really well! :D
    First song was Christmas and the first 5 added were very simular tracks to the first i started (seemed to match on 'Female vocalists') and haven't seen a Christmas song in there.

    But i did ran into an XML issue when you skip a couple of songs. Probabaly happens because MP keeps sending info while it wasn't processed before. As you can see in the log, the first error thrown is pretty harmless, but when i skipped a couple more tracks, it started to freak out. MediaPortal was still playing music, but i was missing some GUI elements and had the feeling it was about to freeze.

    Logs attached, steps to reproduce:
    1. start a song
    2. wait till first 5 are added and then skip a few songs forward.

    Will test some more with other Christmas songs that failed on the first test run.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom