item_loop => [
                           {
                             actions => {
                                   add => {
                                            cmd => ["appgallery", "items"],
                                            params => {
                                                  favorites_title => "Launch Mediafly now",
                                                  favorites_type => "link",
                                                  favorites_url => "http://www.mysqueezebox.com/api/mediafly/v1/opml",
                                                  item_id => "e2b7cfa6.1.1.1.2.1",
                                                  menu => "appgallery",
                                                  type => "link",
                                                },
                                          },
                                   go  => { cmd => ["appgallery", "items"], params => 'fix' },
                                 },
                             addAction => "go",
                             text => "Launch Mediafly now",
                           },
                           {
                             actions => {
                                   add => {
                                            cmd => ["appgallery", "items"],
                                            params => { item_id => "e2b7cfa6.1.1.1.2.2", menu => "appgallery" },
                                          },
                                   go  => {
                                            cmd => ["appgallery", "items"],
                                            nextWindow => "appGallery",
                                            params => 'fix',
                                          },
                                 },
                             addAction => "go",
                             text => "Return to App Gallery",
                           },
                         ],
            offset    => 0,
            title     => "Don't add shortcut to home menu",
            window    => {
                           textarea    => "Mediafly has been successfully installed!",
                           windowStyle => "text_list",
                         },
          },
      ext => { priority => "" },
      id => 146,
    },
  ];

What iPeng makes of it:

[10-04-09 23:53:42.4195] Slim::Web::Cometd::handler (143) Cometd request: [
  {
    channel => "/slim/request",
    data => {
          request  => [
                        "00:04:20:10:11:0d",
                        [
                          "appgallery",
                          "items",
                          "menu:appgallery",
                          "item_id:e2b7cfa6.1.1.1.2.2",
                        ],
                      ],
          response => "/0f401bf2/slim/request",
        },
    id => 151,
  },
]
[10-04-09 23:53:42.4320] Slim::Web::Cometd::handleRequest (832) Request for /0f401bf2/slim/request / 151 is async, will callback


Reply


[{"clientId":null,"id":"154","channel":"/slim/request","successful":true}]
[10-04-09 23:53:43.1215] Slim::Web::Cometd::requestCallback (861) requestCallback got results for /0f401bf2/slim/request / 151
[10-04-09 23:53:43.1231] Slim::Web::Cometd::Manager::deliver_events (214) Sending event on channel /0f401bf2/slim/request to 0f401bf2
[10-04-09 23:53:43.1553] Slim::Web::Cometd::Manager::deliver_events (228) Delivering events to 0f401bf2:
do {
  my $a = [
    {
      channel => "/0f401bf2/slim/request",
      data => {
            base      => {
                           actions => {
                                 add => {
                                       cmd => ["appgallery", "playlist", "add"],
                                       itemsParams => "params",
                                       params => { menu => "appgallery" },
                                       player => 0,
                                     },
                                 "add-hold" => {
                                       cmd => ["appgallery", "playlist", "insert"],
                                       itemsParams => "params",
                                       params => 'fix',
                                       player => 0,
                                     },
                                 go => {
                                       cmd => ["appgallery", "items"],
                                       itemsParams => "params",
                                       params => 'fix',
                                     },
                                 more => {
                                       cmd => ["appgallery", "items"],
                                       itemsParams => "params",
                                       params => 'fix',
                                       player => 0,
                                       window => { isContextMenu => 1 },
                                     },
                                 play => {
                                       cmd => ["appgallery", "playlist", "play"],
                                       itemsParams => "params",
                                       nextWindow => "nowPlaying",
                                       params => 'fix',
                                       player => 0,
                                     },
                                 "set-preset-0" => {
                                       cmd => ["jivefavorites", "set_preset", "key:0"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-1" => {
                                       cmd => ["jivefavorites", "set_preset", "key:1"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-2" => {
                                       cmd => ["jivefavorites", "set_preset", "key:2"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-3" => {
                                       cmd => ["jivefavorites", "set_preset", "key:3"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-4" => {
                                       cmd => ["jivefavorites", "set_preset", "key:4"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-5" => {
                                       cmd => ["jivefavorites", "set_preset", "key:5"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-6" => {
                                       cmd => ["jivefavorites", "set_preset", "key:6"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-7" => {
                                       cmd => ["jivefavorites", "set_preset", "key:7"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-8" => {
                                       cmd => ["jivefavorites", "set_preset", "key:8"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                                 "set-preset-9" => {
                                       cmd => ["jivefavorites", "set_preset", "key:9"],
                                       itemsParams => "params",
                                       player => 0,
                                     },
                               },
                         },
            count     => 1,
            item_loop => [
                           {
                             action    => "none",
                             actions   => {
                                            add => { cmd => ["appgallery", "items"], params => { menu => "appgallery" } },
                                            go  => { cmd => ["appgallery", "items"], params => 'fix' },
                                          },
                             addAction => "go",
                             style     => "itemNoAction",
                             text      => "Leer",
                           },
                         ],
            offset    => 0,
            title     => undef,
            window    => { windowStyle => "text_list" },
          },
      ext => { priority => "" },
      id => 151,
    },
  ];
  $a->[0]{data}{base}{actions}{"add-hold"}{params} = $a->[0]{data}{base}{actions}{add}{params};
  $a->[0]{data}{base}{actions}{go}{params} = $a->[0]{data}{base}{actions}{add}{params};
  $a->[0]{data}{base}{actions}{more}{params} = $a->[0]{data}{base}{actions}{add}{params};
  $a->[0]{data}{base}{actions}{play}{params} = $a->[0]{data}{base}{actions}{add}{params};
  $a->[0]{data}{item_loop}[0]{actions}{go}{params} = $a->[0]{data}{item_loop}[0]{actions}{add}{params};
  $a;
}
[10-04-09 23:53:43.1580] Slim::Web::Cometd::sendHTTPResponse (669) Sending Cometd chunk:
[{"data":{"base":{"actions":{"set-preset-1":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:1"],"player":"0"},"add-hold":{"params":{"menu":"appgallery"},"itemsParams":"params","cmd":["appgallery","playlist","insert"],"player":"0"},"set-preset-0":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:0"],"player":"0"},"add":{"params":{"menu":"appgallery"},"itemsParams":"params","cmd":["appgallery","playlist","add"],"player":"0"},"set-preset-8":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:8"],"player":"0"},"play":{"params":{"menu":"appgallery"},"itemsParams":"params","cmd":["appgallery","playlist","play"],"player":"0","nextWindow":"nowPlaying"},"set-preset-5":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:5"],"player":"0"},"go":{"params":{"menu":"appgallery"},"itemsParams":"params","cmd":["appgallery","items"]},"set-preset-3":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:3"],"player":"0"},"set-preset-6":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:6"],"player":"0"},"set-preset-7":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:7"],"player":"0"},"set-preset-4":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:4"],"player":"0"},"set-preset-9":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:9"],"player":"0"},"set-preset-2":{"itemsParams":"params","cmd":["jivefavorites","set_preset","key:2"],"player":"0"},"more":{"params":{"menu":"appgallery"},"itemsParams":"params","window":{"isContextMenu":"1"},"cmd":["appgallery","items"],"player":"0"}}},"count":"1","window":{"windowStyle":"text_list"},"item_loop":[{"actions":{"add":{"params":{"menu":"appgallery"},"cmd":["appgallery","items"]},"go":{"params":{"menu":"appgallery"},"cmd":["appgallery","items"]}},"addAction":"go","text":"Leer","action":"none","style":"itemNoAction"}],"title":null,"offset":"0"},"id":"151","channel":"/0f401bf2/slim/request","ext":{"priority":""}}]



Re-Request of App Gallery menu by iPeng:


[10-04-09 23:53:43.8790] Slim::Web::Cometd::handler (143) Cometd request: [
  {
    channel => "/slim/request",
    data => {
          request  => [
                        "00:04:20:10:11:0d",
                        ["appgallery", "items", 0, 100, "menu:appgallery"],
                      ],
          response => "/0f401bf2/slim/request",
        },
    id => 158,
  },
]
[10-04-09 23:53:43.8914] Slim::Web::Com