PDA

View Full Version : "Play Everything"



Michael Sigalos
2004-12-06, 15:19
Kevin,

Actually, this is one feature that drives me completely bullocks on my
Squeezebox because I'm a big idiot and seem to prematurely hit the PLAY
button when navigating the client. This is most often followed by me
saying 'Doh as the client obediently reports that it is going to "PLAY
EVERYTHING". To do this on purpose with a Squeezebox, navigate to the
BROWSE GENRES top menu (or BROWSE ARTISTS or BROWSE ALBUMS) and press PLAY.
I assume the same holds true for the SliMP3.

Michael



> Hello all,
>
> Apologies if this has already been covered as nauseum, but I looked
> through the last several months of the mailing list and saw nothing
> relevant.
>
> One of the primary use-cases for my iPod is to set it on shuffle, select
> "Browse Music", hit Play, and it will work its way through my entire
> collection one song at a time, shufling appropriately.
>
> I'd love to be able to duplicate this behavior on my SliMP3, but I've
> been unable to find an appropriate menu option anywhere, and the
> directory structure of my music library seems to prohibit me from being
> able to simply hit "Play" when browsing the Music Folder (at least to
> the end of getting this functionality).
>
> Any thoughts on what I might be able to do here? As a short-term
> solution I created a playlist that contains my entire library, but
> without dynamic playlists this will be stagnant when I add new things to
> my library (a somewhat regular activity for me).
>
> Thanks!
>
> --Kevin Murphy
> SliMP3 #003

Ben Klaas
2004-12-06, 16:09
I enjoy a "megamix" of shuffling and playing everything I have as well.
I don't like waiting for the dynamic creation of the playlist, so I
create one every day about 1am via a cronjob. Aside from the three path
variables here, this should be a platform independent script (i.e., to
make it work in windoze, make sure to change your /'s to \'s).

use at your discretion. I offer no tech support ;)

#!/usr/bin/perl

use strict;
my @list;
use File::Find;
use File::Basename;

# change as needed ##########################
my $tune_basedir = "/tunevault";
my $playlist_dir = $tune_basedir . "/playlists";
my $m3u_file = $playlist_dir . "/megamix.m3u";
#############################################

File::Find::find({wanted => \&wanted}, "$tune_basedir");

my @sort = sort { basename($a) cmp basename($b) } @list;

open (MEGAMIX, ">$m3u_file") or die "$!";
foreach (@list) {
print MEGAMIX $_ . "\n";
}
close MEGAMIX;

sub wanted {
my $name = $File::Find::name;
if ($name =~ /\.(mp3|wav|ogg|flac)$/i) {
push (@list, $name);
}
}

Michael Sigalos wrote:
> Kevin,
>
> Actually, this is one feature that drives me completely bullocks on my
> Squeezebox because I'm a big idiot and seem to prematurely hit the PLAY
> button when navigating the client. This is most often followed by me
> saying 'Doh as the client obediently reports that it is going to "PLAY
> EVERYTHING". To do this on purpose with a Squeezebox, navigate to the
> BROWSE GENRES top menu (or BROWSE ARTISTS or BROWSE ALBUMS) and press PLAY.
> I assume the same holds true for the SliMP3.
>
> Michael
>
>
>
>
>>Hello all,
>>
>>Apologies if this has already been covered as nauseum, but I looked
>>through the last several months of the mailing list and saw nothing
>>relevant.
>>
>>One of the primary use-cases for my iPod is to set it on shuffle, select
>>"Browse Music", hit Play, and it will work its way through my entire
>>collection one song at a time, shufling appropriately.
>>
>>I'd love to be able to duplicate this behavior on my SliMP3, but I've
>>been unable to find an appropriate menu option anywhere, and the
>>directory structure of my music library seems to prohibit me from being
>>able to simply hit "Play" when browsing the Music Folder (at least to
>>the end of getting this functionality).
>>
>>Any thoughts on what I might be able to do here? As a short-term
>>solution I created a playlist that contains my entire library, but
>>without dynamic playlists this will be stagnant when I add new things to
>>my library (a somewhat regular activity for me).
>>
>>Thanks!
>>
>>--Kevin Murphy
>>SliMP3 #003
>
>