Warning: session_start(): open(/tmp/sess_g56bs5vqqj5d3un1hj7g4hbqu4, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
Random Album openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  .- Knowledge Base  . 

Random Album

   0.3  

Amarok Script

Score 56%
Link:  http://
Downloads:  643
Submitted:  Jul 18 2006
Updated:  Oct 9 2006

Description:

For a long time I wanted to play a random "album" in Amarok. I could not find how to do it with what existed, so I got around to write my own (first) amarok script.

It should be a playlist really, but I don't know yet how to do that. The script behaves quite like a dynamic playlist.

So here it is. It will play a random album from your collection. Upon reaching the last song, it will load a new one in the playlist.

Alternatively, you can select to play a random artist (see the configuration)

The script access the database. I've only tried with MySQL. I think that the "album" mode will work with SQLite, but not the "Artist" mode.




Changelog:

Version 0.3 2006 10.09

For amarok 1.4.3 and above(?) ONLY! For ealier versions use 0.2

Changed script to work with Amarol 1.4.3

The "tags" table in the database now contains the path of a file below
a given "device" (defined in table "devices"). The script now handles
that correctly using KURL.

The "album path" filter filters according to the path below the "device"
path. The device path is not taken into account

BUG
No attempt is made to check that the files do exists... This may be
problem.... There seem to be no such a method with KURL and the
"unicode" function refuse to take a QString (PyQt says it should)
so I can't convert things to use os.path.isfile()

Version 0.2 Aug 12 2006

Fixed a few bugs
The script will now terminates

Files with '?', '#',... should
now be handled correctly.Now
Pink Floyd's The Wall will play
the first track too.

Commented out the debug lines.
Some string encoding problemwould
sometime crash the script.

Change.
When dealing with multiple albums
with a common name, they will be
played in sequence rather than be
intertwined

New feature

You can specify where the albums
you want to play must be located

When using the "artist" mode, the
artist must be found in the
specified subtree, but the songs
will be selected from the whole
collection



License:
Open Source License

(Random Album)
Send to a friend
Subscribe
Other  Content  from frawau
Report inappropriate content



-

 ???

 
 by Superstoned on: Jul 18 2006
 
Score 50%

sorry, but album random play has been in amarok for a long long time. it's just one of the options you have for random playing: normal, random, album random.


Reply to this

-
.

 Re: ???

 
 by camico on: Jul 23 2006
 
Score 50%

this requires putting your whole collection into the playlist, so this script indeed does something that Amarok can't do.

However I would expect a Random Album script to load complete albums only. Of course it can't know which albums are complete. Except by making the file path user-definable (this is not a feature request :) because...

Another idea to approximate the desired behavior is a smart playlist like:
- match my complete albums path
- match track no. 1
- random order
- some limit
Start playing and when you want to listen to the entire album just load it from the context browser...


Reply to this

-

 Re: Re: ???

 
 by frawau on: Aug 1 2006
 
Score 50%

Thank you for your comment.

Adding the "full album path" filter should not be complicated.

Currently the "album" info is extracted from the database.. and that leads to a bug I recently found when 2 albums have the same title...

With the "full album" path, the script would simply randomly select an "album" from the DB and check if it is in the right place. If not it would select another one.


Using the tracks "path" is also an easy way to solve the bug I mentioned above.

Naturally this means that the music collection is more than a directory full of files :)
Cheers


Reply to this

-

 Oops

 
 by frawau on: Jul 18 2006
 
Score 50%

Alright.... I always thought I would find it in one of the "dynamic playlist".

In any case, the "random artist" feature is still "new" and it could be easily extended to offer other tags (e.g. year, genre, ....)

Anyway, I learned how to write a script for amaok.... Not a total loss.. for me :)


Reply to this

-
.

 Re: Oops

 
 by frawau on: Jul 18 2006
 
Score 50%

On second thought...I tried the "Random -> Album" mode... And it did not behave the way I liked.

I'll use my script after all, I feel it behaves more like a dynamic playlist.


Reply to this

-

 sweetness

 
 by theillien on: Apr 7 2008
 
Score 50%

I'm also wondering why a Random Album dynamic playlist isn't included. While it is one more step to go to the script manager and run it manually it is worth it for the function I'm looking for. Good job and thanks much.

Cheers!
Mathew


Reply to this

-

 Re: sweetness

 
 by theillien on: Apr 7 2008
 
Score 50%

A suggestion: Allow user to determine if only one album should be played, how many successive albums are to be played or leave it at the default which is its current behaviour (it continues to reload the playlist with a new album until told to stop).


Reply to this

-

 Songs loaded out of order

 
 by theillien on: Jul 9 2008
 
Score 50%

Whenever a new album is loaded it places the songs themselves in a random order. Amarok itself isn't playing them randomly though. They are played sequentially in the order they are loaded. I checked the configuration options but this isn't an option.

Has anyone else experienced this and know how to stop it from happening?


Reply to this

-

 problem running

 
 by monguin61 on: Mar 13 2009
 
Score 50%

When I try to run this script I get a dialog box telling me "dcopext module is required for this script" and then an error message:

The script 'randomalbum.py' exited with error code: 1

Traceback (most recent call last):
File "/home/alan/.kde/share/apps/amarok/scripts/random-album/randomalbum.py", line 30, in <module>
import dcopext
ImportError: No module named dcopext

I tried sudo apt-get install python-dcop and that didn't seem to help. Can anyone give me some help getting this to work?


Reply to this

-
.

 Not loading new album

 
 by maroach on: Apr 26 2009
 
Score 50%

When getting to the last song playlist is cleared like it should be, but for some reason script does not load new album to playlist. Same behavior in both Album and Artist mode. Any suggestions what's wrong?

Ubuntu 9.04
Amarok 1.4.10 with SQLite Database


Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team