Home of the Squeezebox™ & Transporter® network music players.
Page 23 of 25 FirstFirst ... 132122232425 LastLast
Results 221 to 230 of 241
  1. #221
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,779

    it doesn't cost much to ask

    Hi flipflip,

    any chance of you picking up the coding pencil and helping with this?

    http://forums.slimdevices.com/showth...xposedby-SSOxS


    atb

    Ronnie

  2. #222
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,475

    Multi Library support in LMS 7.9

    Hey flipflip

    long time no see :-)

    > - What's the allowed "nodes" parameter for Slim::Menu::BrowseLibrary()?
    >
    > Slim::Menu::BrowseLibrary::_albums(), _tracks(), _years() etc. all work.
    > _topLevel(), however, doesn't seem to work (UI stalls / loads
    > endlessly). I haven't looked into the code, and it's not very important.
    > But to have all the standard browse modes (by
    > album/artist/track/year/search/..) below each library would be nice.


    Good point. Could imagine this might be interesting to some users. Will
    see what I can do.

    > - The "name" parameter for
    > Slim::Music::VirtualLibraries->registerLibrary() doesn't seem to support
    > strings.txt constants. Shouldn't it?


    It doesn't, and I don't know whether it should. What's the use case?

    > - How's the scannerCB() function passed to
    > Slim::Music::VirtualLibraries->registerLibrary() supposed to work?
    >
    > From looking at the code in Slim::Music::VirtualLibraries::rebuild() I
    > guess it would not only have to fill in the records in library_track but
    > also populate the helper tables (library_album, library_contributor,
    > etc.).
    >
    > Is that right? If so, shouldn't rebuild() take care of emptying the
    > table before calling scannerCB() and populating the auxiliary tables
    > after calling scannerCB(). This would spare us from maintaining
    > duplicated code in scannerCB().


    When I initially thought of the CB function, there were no tables for
    albums, contributors etc. yet. And I had some use case in mind which
    would leave all responsibility to the callback indeed.

    I'll have to review this, too. Do you have a use for it already? I might
    just pull it instead...

    > Or possibly, scannerCB() could just return a list of track ids that
    > should go into the library and then rebuild() could take care of all the
    > database stuff?


    That would make sense indeed.

    > (I may have completely missed the point...)


    Nope. You only pointed at some ugly details which got neglected while
    the code grew :-).

    > And related to creating a scannerCB().. What's the proper way to decode
    > a tracks.url into a local file system path (using SQL LIKE on it is a
    > bit of a pain, I'd rather regex match it)? But never mind, I'll find
    > out.. :-)


    Something like Slim::Music::Info::fileName($url)

    --

    Michael

  3. #223
    Senior Member
    Join Date
    Nov 2014
    Posts
    211
    Michael,

    Thank you so much for this feature.

    I only got around to using it today. I thought it was complicated, but creating custom library views through advanced search is easy as pie. Fantastic work!

  4. #224
    Senior Member flipflip's Avatar
    Join Date
    Apr 2006
    Location
    Swissaland
    Posts
    1,409
    Ciao Michael,

    thanks for the comments. Indeed I haven't touched my Squeezeserver (or whatever it's called today ;-) for ages. I've been using it heavily. I just recently moved to a newer release and read a bit in the forum...

    >> - The "name" parameter for Slim::Music::VirtualLibraries->registerLibrary() doesn't seem to support strings.txt constants. Shouldn't it?
    >It doesn't, and I don't know whether it should. What's the use case?


    That string is used/displayed in the list under Home > Library Views in the web interface and also at the bottom of the left pane. Shouldn't that translate, too?

    >> - How's the scannerCB() function passed to Slim::Music::VirtualLibraries->registerLibrary() supposed to work? [...]
    > [...] And I had some use case in mind which would leave all responsibility to the callback indeed.
    >> Or possibly, scannerCB() could just return a list of track ids that should go into the library and then rebuild() could take care of all the database stuff?
    > That would make sense indeed.


    I'll give it a try.


    Regards,
    flip
    Last edited by flipflip; 2015-05-19 at 13:58.

  5. #225
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,475

    Multi Library support in LMS 7.9

    >>> - The "name" parameter for
    > Slim::Music::VirtualLibraries->registerLibrary() doesn't seem to support
    > strings.txt constants. Shouldn't it?
    >> It doesn't, and I don't know whether it should. What's the use case?

    >
    > That string is used/displayed in the list under Home > Library Views in
    > the web interface. Shouldn't that translate, too?


    Ok, ok. Dein Wunsch sei mir Befehl :-).

    I've added an optional "string" parameter to the registerLibrary() call.
    This must be a valid string token which subsequently would be used in
    getNameById() to return a localized library name. Please check the
    updated header documentation in S::M::VirtualLibraries and the
    registration call in S::Plugins::ExtendedBrowseModes::Libraries.

    --

    Michael

  6. #226
    Senior Member
    Join Date
    Oct 2009
    Posts
    201

    virtual library for dummies?

    I'm trying to understand how this all works. I found the plugin "sub library demo". I'm lost how to configure this. I read something related to Advanced search.
    A few pointers to get me started would be great! I'm running the latest nightly build of 7.9 on OSX.
    Thanks

  7. #227
    Senior Member
    Join Date
    Oct 2009
    Posts
    201
    Quote Originally Posted by Jackisidore View Post
    I'm trying to understand how this all works. I found the plugin "sub library demo". I'm lost how to configure this. I read something related to Advanced search.
    A few pointers to get me started would be great! I'm running the latest nightly build of 7.9 on OSX.
    Thanks
    To answer my own question. Advanced search doesn't show a Save search or save as library view on the results page. I have to go back one page and voila save as library view is now an option. After that VirtualLibraries.pref exists in my Pref folder.

    Works nicely!

  8. #228
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,853
    Quote Originally Posted by Jackisidore View Post
    I'm trying to understand how this all works. I found the plugin "sub library demo". I'm lost how to configure this. I read something related to Advanced search.
    A few pointers to get me started would be great! I'm running the latest nightly build of 7.9 on OSX.
    Thanks

    Hi,
    you should open a new thread cause its a bit longer story and a explicit thread for the plugin would be helpfull for others as well.

    edit did that for you
    http://forums.slimdevices.com/showth...plugin-to-work

    The plugin "sub library demo" and the advanced Search Hack are two different ways.
    As far as i understood it the "sub library demo" plugin is updated after every scan - the Advanced Search (you will see that in the Date/Time) just once after setup.
    But may i am wrong with that.
    Last edited by DJanGo; 2015-06-13 at 03:28.

  9. #229

    latest recommended path to get multi library?

    bump - not trying to hijack but seems dormant

    I'm just another squeezebox user looking for the most basic of multi-library support (would like to have a "kids music" section, without just having to browse by folder)

    Quick forum scan suggests the license manager plugin so I can pay for the multi-library plugin, developed by someone outside of Logitech - is this still the recommended MO?

    Related question - I'm on 7.8.1 installed via apt, I presume I'm better off migrating to 7.9? Haven't looked for a package yet but am ok with cloning a source repo if need be

    Am fine with SQL, but unclear if I could browse my virtual libraries using "Squeezer" android app... or even with 7.9 is the commercial plugin needed...

    BTW thanks for any and all continued support - we love our squeezeboxen

    EDIT: I see the thread about getting the "sub library demo" to work. "demo" scared me at first but sounds promising - especially since it addresses adding a menu in the UI - so I would *expect* it to work in squeezer or whatever other android / iphone app. I will give it a go when time allows.
    Last edited by drizzo4shizzo; 2016-07-17 at 20:08.

  10. #230
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,475

    Multi Library support in LMS 7.9

    > I'm just another squeezebox user looking for the most basic of
    > multi-library support (would like to have a "kids music" section,
    > without just having to browse by folder)


    If you have specific genres, then you could create an Advanced Search
    and save it as a library definition. Might need some SQL tweaking in the
    configuration file, but you said that was ok.

    > Related question - I'm on 7.8.1 installed via apt, I presume I'm better
    > off migrating to 7.9? Haven't looked for a package yet but am ok with
    > cloning a source repo if need be


    Yes, go with 7.9. It's the best LMS ever - so far :-).

    > Am fine with SQL, but unclear if I could browse my virtual libraries
    > using "Squeezer" android app... or even with 7.9 is the commercial
    > plugin needed...


    LMS 7.9 provides the backend for virtual library support, plus a rather
    limited UI using the Advanced Search. The idea was that 3rd party
    plugins would provide the UI to define libraries. But I'm not sure we're
    going to see anything soon :-(.

    WRT Squeezer: any app which uses the standard menus should work. I don't
    know about Squeezer specifically though.

    --

    Michael

Posting Permissions

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