Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member meep's Avatar
    Join Date
    Aug 2007
    Location
    Ireland
    Posts
    195

    Retrieving entries from install.xml

    Tried to find this through forum search and looking at code but came up short....

    Id like to retrieve values from a plugins install.xml. Specifically, I want to pull the version detail into a variable that I can use in logging and some other functions.

    Is is the plugin install.xml data stored in memory somewhere or should I just try to read the file?

    Appreciate pointers.

    Peter


    ALEXA LMS SKILL: http://www.hab-tunes.com | Twitter: #habtunes
    Personal HA BLOG: http://mediaserver8.blogspot.com

    Squeezebox | Squeezebox Radio x 2 | Squeezebox Duet

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    14,927
    I think the in the plugin initPlugin routine the following picks up the install.xml data
    Code:
    Slim::Utils::PluginManager->dataForPlugin($class);

  3. #3
    Senior Member meep's Avatar
    Join Date
    Aug 2007
    Location
    Ireland
    Posts
    195
    Quote Originally Posted by bpa View Post
    I think the in the plugin initPlugin routine the following picks up the install.xml data
    Code:
    Slim::Utils::PluginManager->dataForPlugin($class);
    That did the trick, many thanks


    ALEXA LMS SKILL: http://www.hab-tunes.com | Twitter: #habtunes
    Personal HA BLOG: http://mediaserver8.blogspot.com

    Squeezebox | Squeezebox Radio x 2 | Squeezebox Duet

Posting Permissions

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