Announcement

Collapse
No announcement yet.

Add items to My Music "More" menu?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add items to My Music "More" menu?

    Is it possible to add and edit items in the "More" menu when browsing the My Music library items? What I had in mind is to add a "Play shuffled" item which would explicitly turn shuffle on before playback and likewise modify the existing "Play" to turn shuffle off before playback. If this is possible could someone please point me in the right direction? Thanks.

    #2
    Finally somebody who likes that feature (so many used to complain about it in iPeng, although, mysteriously, no longer recently)

    I'd have a look at e.g. the PlaylistManager Plugin which does add a menu item to the top of the context menu.

    I'm not sure about the default behavior, though, that might require a server patch.
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

    Comment


      #3
      Add items to My Music "More" menu?

      > Is it possible to add and edit items in the "More" menu when browsing
      > the My Music library items?


      Yes: check out the various implementations of the TrackInfo menu handler.
      Eg. in Slim/Plugin/RadioTime/Plugin.pm

      --

      Michael
      Michael

      "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
      (LMS: Settings/Information)

      Comment


        #4
        Thanks to both of you - I'll take a look. By the way, are the basic (built-in) functions available to plugins defined or documented somewhere? For example, what function do I call to turn shuffle on? Can I call the pre-defined function used when "Play" is selected from the More menu from my plugin?

        Comment


          #5
          Originally posted by cncb View Post
          Thanks to both of you - I'll take a look. By the way, are the basic (built-in) functions available to plugins defined or documented somewhere? For example, what function do I call to turn shuffle on? Can I call the pre-defined function used when "Play" is selected from the More menu from my plugin?
          To turn Shuffle off;

          $client->execute( [ "playlist", "shuffle", 0 ] );

          Change that to 1 or 2 depending on what shuffle mode you want.
          www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

          Comment


            #6
            Originally posted by cparker View Post
            To turn Shuffle off;

            $client->execute( [ "playlist", "shuffle", 0 ] );

            Change that to 1 or 2 depending on what shuffle mode you want.
            Thanks for that. It appears that is calling the "CLI" which I see the documentation for.

            I am still in the dark about how to exactly add items to menus, what properties the items need, how selection is handled, all the menus that exist, etc. Is the "Slim::Menu" class (I don't know exactly what it is called in PERL) documented somewhere or do we just have to guess?

            Comment


              #7
              I have this working for everything but the more menu shown for a "Favorites" item. Is there an equivalent "Info" menu class for Favorites that I can add to? Thanks.

              Comment

              Working...
              X