GNOME Bugzilla – Bug 348582
Random by Album
Last modified: 2009-06-17 11:44:18 UTC
It'd be nice to have the feature of playing whole albums randomly.
You could just use the search box for filtering the library to the album you'd like to listen to. Or you could create a (smart) playlist.
Well, I'm not sure how a playlist would solve the problem. I would like banshee to play randomly from my library but keeping the albums together. Selecting them manually with the search function is *a* solution, but not a very good one, as I'd have to select a new album every time. And I could order things by album, but then the 'random' bit is lost. Thanks for your feedback.
+1 I think it could be a very cool feature... But be careful : Amarok can do it but it sort first by artist and then by album, so it doesn't work with compilation (an album with various artist ;) !)
How could this be added to the interface cleanly? To be clear, you want to hear a whole album first to last track and then have another album selected randomly to play first to last track?
Well, 'repeat' has already three choices: 'none', 'all', and 'single'. What about doing the same for shuffle, where you would have 'none', 'song', 'album'? Thanks.
Created attachment 84373 [details] [review] Adds shuffle by album and shuffle by artist This patch adds shuffle by album and shuffle by artist. I combined icon-artist.png & icon-album.png with the shuffle icon. They're pretty small, so perhaps more salient icons are needed.
Created attachment 84374 [details] shuffle by album icon This goes in /banshee/data/images/
Created attachment 84375 [details] THIS is the shuffle by artist. My apologies, the other image is the shuffle by album icon. This is the shuffle by artist. This also goes in /banshee/data/images/
Created attachment 84376 [details] [review] Slightly revised patch Revised the patch to handler "Unknown Artist".
Created attachment 84417 [details] [review] patch v3 This patch fixes an issue with continuous playback. It seems certain classes must be declared in a certain order due to reflection.
Created attachment 84423 [details] [review] patch v4 It turns out I hadn't fixed the problem as well as I'd thought. This should take care of everything.
Please specify the latest version of banshee you have been able to test this against or let us know that this is no longer a problem. Thank you for helping us keep track of your bug.
The UI part seems to be in banshee since 1.0, but the actual "Random by Album" isn't implemented yet. So the patch needs a lot of work to apply to trunk.
Hi, I wonder if there are any news on this bug. The UI has had a "Random by Album" option grayed out for a while now, which suggest this feature is coming soon, but the history of this bug suggest otherwise. Thanks.
Implemented in git master!
Hi Gabriel, That is fantastic news. I don't suppose there's a patch I can apply to 1.4.3 to try it? Thanks again!
It doesn't quite work for me. Steps to reproduce: 0. Select "Shuffle by album" 1. Press "Next" This works. The first track of a random album starts playing. 2. Press "Next" This also works, playback jumps to the next track of the same album. 3. Press "Next" a few more times until all album's tracks are skipped. This jumps to the last song in the album, after this the "Next" button does nothing at all. When the song finishes, playback just stops. 4. Double click a random song in the library. Playback starts. 5. Press "Next" Nothing happens, the song continue playing. When it finishes playback stops. I'm re-opening the bug.
Committed the fix.
Created attachment 135861 [details] [review] Patch to apply agains 1.4.3 (In reply to comment #16) > That is fantastic news. I don't suppose there's a patch I can apply to 1.4.3 to > try it? This is a cherry-picked patch to apply to 1.4.3
Alexander, Great, thanks. It's working great!
I need intructions on how to install the patch. I've followed these steps: 1. Download Banshee 1.4.3 source-code from banshee website and extract it 2. Put the patch in the same folder as Banshee 3. In the console I cd to Banshee directory and run the command: patch banshee.patch But the console sits there and I don't know what's going on.
I applied the patch manually, but now I can't install form source (I always use synaptic). I'm getting the error: >checking for GLIB - version >= 2.0.0... no >*** Could not run GLIB test program, checking why... >*** The test program failed to compile or link. See the file config.log for the >*** exact error that occured. This usually means GLIB is incorrectly installed. >checking for GTK... configure: error: Package requirements (gtk+-2.0 >= 2.8) were >not met: > >No package 'gtk+-2.0' found > >Consider adjusting the PKG_CONFIG_PATH environment variable if you >installed software in a non-standard prefix. > >Alternatively, you may set the environment variables GTK_CFLAGS >and GTK_LIBS to avoid the need to call pkg-config. >See the pkg-config man page for more details. Please help me
(In reply to comment #21) > I need intructions on how to install the patch. I've followed these steps: > 1. Download Banshee 1.4.3 source-code from banshee website and extract it > 2. Put the patch in the same folder as Banshee > 3. In the console I cd to Banshee directory and run the command: patch > banshee.patch > > But the console sits there and I don't know what's going on. > To apply the patch run this: $ git apply /path/to.patch Then follow the build instructions from: http://banshee-project.org/contribute/write-code/ http://banshee-project.org/download/development/ If you have problems stop by #banshee on irc.gnome.org
Thanks for your help, but everything is already running. I applied the patch manually and run the command: >apt-get build-dep banshee to install all dependencies. Main point: Banshee is the best player xD Thanks for your help and for the patch.