Slight edit of default now playing help (1 Viewer)

Shangostar

MP Donator
  • Premium Supporter
  • December 27, 2009
    438
    125
    Somerset
    Home Country
    United Kingdom United Kingdom
    Hello willing helpers.

    I been trying to edit the default now playing screen slightly and have come to a few hurdles pretty much right at the start since my knowledge of this is limited at best.

    Since I don't use internet look up features for top album tracks rating and similar tracks etc I wanted to change a couple of the items in the menu.

    Namely

    Top album tracks to Browse Music and Similar Tracks to Playlists and link them accordingly.

    So far I've managed to change the displayed titles of the buttons and link the browse music button ok using windows ID 501 but I don't know what the ID is for music playlists, not current playlist but my saved playlists.

    The other thing is that when I highlight them they obviously still show the top/similar tracks, which is blank since I don't use it.
    I'd like them to show what is now playing like it does when you select current playlist and mylyrics.
    I did have a few goes at this with disastrous results :oops:

    The main thing I need is the playlist ID, it will then be at least functional if not displaying the correct items.

    If anyone could help it would be much appreciated.

    PS, the one i want to edit is the new defaut now playing with the menu items in a little box on the right hand side.

    Thanks.

    :D
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    I'm not at my HTPC, but if you look in musicgenres.xml you should find the link to playlists which will have the ID#.

    Alternatively there should be an xml file with the text "playlist" or something like that in the filename, at the top of the xml file should have the ID#. So you could search for "*play*.xml" or "*list*.xml" in the MP skin directory.
     

    Shangostar

    MP Donator
  • Premium Supporter
  • December 27, 2009
    438
    125
    Somerset
    Home Country
    United Kingdom United Kingdom
    Thanks,Kiwijunglist.

    Searched for a playlist xml but cant find it anywhere, couldn't see any reference to playlist in the musicgenres xml either.

    I had a look in the mymusic.hiddenmenu xml as I know that has a link to the playlists. it seems to be done differently to mylyrics for example though.
    Where mylyrics has a hyperlink tag with the window ID between it, the playlist part doesn't.


    <control>
    <description>My Lyrics</description>
    <type>button</type>
    <id>16</id>
    <label>Lyrics</label>
    <onleft>50</onleft>
    <hyperlink>90478</hyperlink>
    <visible>plugin.isenabled(My Lyrics)</visible>
    </control>

    <control>
    <description>My Playlists</description>
    <type>button</type>
    <id>10</id>
    <label>983</label>
    <onleft>50</onleft>
    </control>

    Is this because the playlists doesn't change to a new page itself but rather a pop up window?

    I tried using ID 10 in a hyperlink tag but that doesn't work.

    I used the Hyperlink tag to browse to my music from the now playing screen using ID 501 but it seems the playlist pop up window isn't done in the same way.
     

    trevor

    Portal Pro
    October 17, 2006
    1,600
    950
    Chelmsford
    Home Country
    United Kingdom United Kingdom
    Hi Shangostar,

    Sorry to say you are on to a bit of a loser here, the save playlist control invokes a dialog and this is done from internal code via control 10, only problem is this control is not part of the nowplaying code and hence you will never be able to invoke it via a hyperlink.

    :sorry:
     

    Shangostar

    MP Donator
  • Premium Supporter
  • December 27, 2009
    438
    125
    Somerset
    Home Country
    United Kingdom United Kingdom
    Ah OK Trevor, thanks, I've managed to do nearly all the other stuff I mentioned it was just the playlist that was failing, see why now. Maybe I'll just have it go to mymusicvids or genres or something instead then.
     

    Users who are viewing this thread

    Top Bottom