PDA

View Full Version : Shortcuts to playlists / URLs



pagewrite
2008-11-26, 09:48
I wonder if someone could help me make my Squeezebox slightly more wife-friendly...

I use the excellent AlienBBC plugin in order to stream BBC Radio 4, but I wondered whether there is a way to make this stream far more accessible with fewer keypresses. I've already added this station as a favourite, but even then, one has to go to the favourite menu, locate the stream, and then hit play. Is there any way to configure it so that it's far more accessible with minimal keypresses?

I've a Logitech Harmony One remote control, so ideally I want to assign a single button to get this station playing (I can build a macro of keypresses if need be).

Can anyone advise?

Many thanks,

Ian

bpa
2008-11-26, 10:02
In many cases the full URL will change with each program.

One way is to create a predefined search with the name of the program.

To try it - edit the URL one of the existing predefined searches and add the name of your program and then test it.

When it works move the menu entry to the main Alien menu.

pagewrite
2008-11-26, 10:08
One way is to create a predefined search with the name of the program.


Predefined search? What's that, then, and how?!

bpa
2008-11-26, 10:18
Oops - the example predefined search menu seem to have been omitted from 2.02.

I'll find the example opml file and post it later.

bpa
2008-11-26, 18:03
Save the example opml in a file ending with .opml such as Searches.opml in the Plugins/Alien/Addons directory.


<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head title="Pre-defined Search">
<expansionState></expansionState>
</head>
<body>
<outline URL="http://www.bbc.co.uk/iplayer/search/?q=Books" parser="Plugins::Alien::Parsers::iPlayerSearchParser" text="Books" />
<outline URL="http://www.bbc.co.uk/iplayer/search/?q=Quiz" parser="Plugins::Alien::Parsers::iPlayerSearchParser" text="Quiz" />
<outline URL="http://www.bbc.co.uk/iplayer/search/?q=Archers" parser="Plugins::Alien::Parsers::iPlayerSearchParser" text="Archers" />
<outline URL="http://www.bbc.co.uk/iplayer/search/?q=Archers%20Omnibus" parser="Plugins::Alien::Parsers::iPlayerSearchParser" text="Archers Omnibus" />
</body>
</opml>


When you restart AlienBBC or click "Reset Menu" in AlienBBC Settings dialogues a new menu called "pre-defined Search" will appear. This name is in the "head title" element (highlighted in green).

Under "pre-defined Search" there will be menu entries corresponding to the "outline" entries - the menu name is derived form the "text=" field (highlighted in blue).

The URL defines the actual search - the search words are highlighed in red. When there is more than one search word put [color=red[%20[/color] between the words (URL encoding for a space).

From the AlienBBC settings you can edit the name and URL of the menu entries to suit your needs and not worry about the other text in the file.