I've noticed that the name of the plugin (i.e. "Grab Playlist") doesn't
seem to get populated until you go to the plugins page on the web
interface. Until then, if you have it on your main menu (as I do) the
entry is blank. I took a quick look at the code but don't see any
obvious issue.

The problem IMHO is the sub strings definition:

sub strings() {
    local $/ = undef;
    <DATA>;
};

Using <DATA> is deprecated as it leads to incorrect results (you've seen them :-)). The problem is that this method does only work the very first time strings() is run. After that DATA's file pointer points to the end of DATA. Any further read will return nothing. The author should rather use something like

sub strings() {
    local $/ = undef;
    return "
PLUGIN_GRABPLAYLIST_NAME
   EN   Grab Playlist

PLUGIN_GRABPLAYLIST_SELECT_PLAYER
   EN   Select Player.  Press PLAY to copy.
..."
};

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to