Home of the Squeezebox™ & Transporter® network music players.
Page 24 of 25 FirstFirst ... 1422232425 LastLast
Results 231 to 240 of 241
  1. #231
    Senior Member Philip Meyer's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    5,596

    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 upgrade to 7.9, you could try the "Simple Library Views" plugin, which is quite easy to configure.

    It allows you to create a library, where you define the content to be included by adding text files in the source folder for each album to be included.

    eg. create a "Favourites" library, with "simple-library-views-Favourites" file being created in each album you want to include in the favourites library. Gives a bit more control than genre filtering.

  2. #232
    Junior Member
    Join Date
    Apr 2018
    Posts
    26
    Just yet another frustrated user here a few years later wondering if this is dead in the water...I'd love to have multiple libraries and define them by folder(s). Is there any avenue to get this back up and running if the handful of people here who really are wanting this to happen contributed $$$ to one of the developers, perhaps via some kind of crowdfunding platform? I'm under the impression there are people that could do this but won't for whatever reason...I'd definitely contribute towards having an actual, flexible, usable and workable multiple library setup.

  3. #233
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,472

    Multi Library support in LMS 7.9

    > Just yet another frustrated user here a few years later wondering if
    > this is dead in the water...


    Please don't expect anyone to read dozens of postings in this thread to
    figure out what you're referring to by "this". Could you please describe
    your issue?

    --

    Michael

  4. #234
    Junior Member
    Join Date
    Apr 2018
    Posts
    26
    This is the second time in the past couple of weeks I've been handed my lunch for apparently being unclear and not posting succinctly so I'm not sure what the issue is given I presumed it was clear posting in a thread entitled "Multi Library support in LMS 7.9" that "this" would be seeking "Multi Library support in LMS 7.9."

    So that said, I am looking to have a multi-library setup for my music, my wife's music, and then our ancillary files such as classical, holiday and non-music files, without having to rely on genre tags to do this as that solution doesn't really work with the kinds of material we have. In my case, I'd like to be able to define a library by name and then add individual folders to it, and then have multiple libraries available to choose from within either LMS or iPeng.

    And having waded through years of threads, it appears this kind of feature has been close several times and never really happened, is that not correct?

  5. #235
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    818
    What's wrong with virtual libraries /advanced Browse mode?
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  6. #236
    Senior Member
    Join Date
    May 2005
    Location
    UK
    Posts
    760

    Multi Library support in LMS 7.9

    Hi,

    In article <typecrazy789.8pjj2n (AT) no-mx (DOT) forums.slimdevices.com>,
    typecrazy789<typecrazy789.8pjj2n (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    > And having waded through years of threads, it appears this kind of
    > feature has been close several times and never really happened, is that
    > not correct?


    Would my Simple Library Views plugin suffice? It's based on files placed in
    album directories, but might do what you want?

    Andy


  7. #237
    Junior Member
    Join Date
    Apr 2018
    Posts
    26
    Quote Originally Posted by marcoc1712 View Post
    What's wrong with virtual libraries /advanced Browse mode?
    I'm ashamed to say I didn't know about this - this more or less does what I want perfectly. But is there a way to add more than one folder to a library view, or would I need to actually move files into a single folder to make it work? I tried adding more than one path using several characters to separate but nothing worked.

  8. #238
    Senior Member JJZolx's Avatar
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    11,548
    Quote Originally Posted by typecrazy789 View Post
    I'm ashamed to say I didn't know about this - this more or less does what I want perfectly. But is there a way to add more than one folder to a library view, or would I need to actually move files into a single folder to make it work? I tried adding more than one path using several characters to separate but nothing worked.
    What about setting up a folder containing links/shortcuts to multiple folders? I believe LMS follows Windows shortcuts.

  9. #239
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    818
    Quote Originally Posted by typecrazy789 View Post
    I'm ashamed to say I didn't know about this - this more or less does what I want perfectly. But is there a way to add more than one folder to a library view, or would I need to actually move files into a single folder to make it work? I tried adding more than one path using several characters to separate but nothing worked.
    What are you using to define sub libraries? The sub library demo plugin?

    This is an example of how I made a modified version of it to have sub libraries defined on folders:

    Code:
    package Plugins::mc2Library::Plugin;
    
    # This program is free software; you can redistribute it and/or
    # modify it under the terms of the GNU General Public License,
    # version 2.
    
    use strict;
    
    use base qw(Slim::Plugin::Base);
    
    use Slim::Menu::BrowseLibrary;
    use Slim::Music::Import;
    use Slim::Utils::Log;
    
    sub initPlugin {
    	my $class = shift;
    
    	# Define some virtual libraries.
    	# - id:        the library's ID. Use something specific to your plugin to prevent dupes.
    	# - name:      the user facing name, shown in menus and settings
    	# - sql:       a SQL statement which creates the records in library_track
    	# - scannerCB: a sub ref to some code creating the records in library_track. Use scannerCB
    	#              if your library logic is a bit more complex than a simple SQL statement.
    	foreach ( {
    		id => 'mc2classica',
    		name => 'Classica',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///F:/Classica/%'
    		}
    	},{
    		id => 'mc2Jazz',
    		name => 'Jazz',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Jazz/%' 
    		}
    	},{
    		id => 'mc2Rock',
    		name => 'Rock',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Rock/%'
    		}
    	},{
    		id => 'mc2Blues',
    		name => 'Blues',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Blues/%'
    		}
    	},{
    		id => 'mc2Audiophile',
    		name => 'Audiophile',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Audiophile/%'
    		}
    	},{
    		id => 'mc2Disco',
    		name => 'Disco',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Disco/%'
    		}
    	},{
    		id => 'mc2Lounge',
    		name => 'Lounge',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Lounge/%'
    		}
    	},{
    		id => 'mc2Latina',
    		name => 'Latina',
    		# %s is being replaced with the library's ID
    		sql => qq{
    			INSERT OR IGNORE INTO library_track (library, track) 
    				SELECT '%s', tracks.id 
    				  FROM tracks 
    				 WHERE url LIKE 'file:///E:/Latina/%'
    		}
    	},{
    		id => 'mc2Other',
    		name => 'Altro',
    		scannerCB => sub {
    			my $id = shift;
    			
    			# We could do some serious processing here. But for the sake of it we're
    			# just going to run another SQL query:
    			my $dbh = Slim::Schema->dbh;
    		
    			$dbh->do( qq{
    				INSERT OR IGNORE INTO library_track (library, track)
    					SELECT '$id', tracks.id
    					FROM tracks 
    					WHERE url NOT LIKE 'file:///E:/Latina/%'
                                              AND url NOT LIKE 'file:///E:/Lounge/%'
                                              AND url NOT LIKE 'file:///E:/Disco/%'
                                              AND url NOT LIKE 'file:///E:/Audiophile/%'
                                              AND url NOT LIKE 'file:///E:/Blues/%'
                                              AND url NOT LIKE 'file:///E:/Rock/%'
                                              AND url NOT LIKE 'file:///E:/Jazz/%'
                                              AND url NOT LIKE 'file:///F:/Classica/%'
    			} );
    		}
    	} ) {
    		Slim::Music::VirtualLibraries->registerLibrary($_);
    	}
    	
    	my @menus = ( {
    		name => 'PLUGIN_MC2_LIBRARY_CLASSICAL_ARTISTS',
    		icon => 'html/images/artists.png',
    		feed => \&Slim::Menu::BrowseLibrary::_artists,
    		id   => 'artistsInMc2Classica',
    		weight => 15,
    	},{
    		name => 'PLUGIN_MC2_LIBRARY_CLASSICAL_ALBUMS',
    		icon => 'html/images/albums.png',
    		feed => \&Slim::Menu::BrowseLibrary::_albums,
    		id   => 'albumsInMc2Classica',
    		weight => 16,
    	} );
    	
    	# this demonstrates how to make use of libraries without switching 
    	# the full browsing experience to one particular library
    	# create some custom menu items based on one library
    	foreach (@menus) {
    		Slim::Menu::BrowseLibrary->registerNode({
    			type         => 'link',
    			name         => $_->{name},
    			params       => { library_id => Slim::Music::VirtualLibraries->getRealId('mc2classica') },
    			feed         => $_->{feed},
    			icon         => $_->{icon},
    			jiveIcon     => $_->{icon},
    			homeMenuText => $_->{name},
    			condition    => \&Slim::Menu::BrowseLibrary::isEnabledNode,
    			id           => $_->{id},
    			weight       => $_->{weight},
    			cache        => 1,
    		});
    	}
    	
    	$class->SUPER::initPlugin(@_);
    }
    
    1;
    look at how the query to define 'mc2Other' sub library looks like to understand how to put togheter more than one folder in a single sub library, here I'm using 'NOT liKE' but sure you could use 'LIKE' instead. This is quick and dirty, but it works.
    Last edited by marcoc1712; 2018-10-24 at 08:33.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  10. #240
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    4,001
    Quote Originally Posted by typecrazy789 View Post
    I'm ashamed to say I didn't know about this - this more or less does what I want perfectly. But is there a way to add more than one folder to a library view, or would I need to actually move files into a single folder to make it work? I tried adding more than one path using several characters to separate but nothing worked.
    Here's an alternative for music you only play occasionally:

    Using Additional Browse Modes/Discs and folders, you can browse to, and play music from any disc/folder attached to the computer that runs LMS without it being scanned/added to the database.

    Name:  Dand F01.jpg
Views: 177
Size:  23.3 KB

    Name:  DandF03.jpg
Views: 173
Size:  10.5 KB

    Name:  DandF04.jpg
Views: 174
Size:  9.2 KB

    Name:  DandF05.jpg
Views: 171
Size:  32.9 KB
    Server - LMS 8.0.1 Pi4B 4GB/Flirc case/pCP v7.0.0b6 - 74K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B/pCP 7.0.0b6/pi screen/Allo Boss DAC Ruark MR1 Mk2
    Lounge - Pi2/pCP 6.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Garage - Squeezebox Boom + Fostex sub
    Dining Room - Squeezebox Radio

    Spares - 2xTouch, 1xSB3, 7xRPi

Posting Permissions

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