Plugin: MP2Extended (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    MP2 doesn't save any playlists, so the music part needs to be extended for this part.
    Don't you remember the (often discussed) "Playlist" menu item in every menu?

    Playlist can contain any mediaitems and are either in temporary state ("add all to playlist") or even can be saved into the media library.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Playlist can contain any mediaitems and are either in temporary state ("add all to playlist") or even can be saved into the media library.
    I remember, but I thought these were only temporary playlists... How can I get them and what is the MediaAspect for them to get them from the MediaLibrary?
    I was browsing through the DB, but I wasn't seeing anything... Maybe I missed it after several hours of coding oO
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Here it is: https://github.com/MediaPortal/Medi...nents/Media/Models/ServerPlaylists.cs#L45-L50

    To create a playlist:
    • Browse media library
    • Use context menu "Add all to playlist"
    • Open "Playlists" from main menu
    • Save the list
    upload_2015-10-6_17-52-33.png
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @johanj
    I've just implemented the Playlistfunctions except one: AddPlaylistItems

    Im the documenttation it says: ids (string)
    So these are the strings of the MediaItems I guess, but what is the separator?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    I get connection also outside the VM now, don't know what the issue was.

    My problem now is that I need to change in the request code since MPExt wasn't case sensitive and MPExt2 is, I had MPextended instead of MPExtended in the request urls....

    Anyway, I have made quite some changes in our code and I need to fix those errors before I can handle the above little fix

    The separator is: |[DOUBLEPOST=1444157298][/DOUBLEPOST]The ids when calling
    AddPlaylistItems
    is from
    GetMusicTracksBasicForAlbum
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    What does Ids look like in GetPlaylistItems?
    This was not requested, so not implemented yet :whistle:
    But thank you very much for trying to help

    The separator is: |
    Thank you!

    My problem now is that I need to change in the request code since MPExt wasn't case sensitive and MPExt2 is
    Ups, I could have changed this... sorry for that.

    get connection also outside the VM now, don't know what the issue was.
    VMs are funny^^
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    new version + small changelog in first post :)
     

    Users who are viewing this thread

    Top Bottom