Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1

    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. #2
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,392
    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
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,932

    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

  4. #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?

  5. #5
    Senior Member cparker's Avatar
    Join Date
    Oct 2005
    Location
    Hampshire, United Kingdom
    Posts
    508
    Quote 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.

  6. #6
    Quote 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?

  7. #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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •