Image 01
profile-image

agt499

Alex Taylor
Random Album

Amarok 2.x Scripts by mvanzin 30 comments

Hey, thanks for the quick reply.

Not too sure how I should have done it, but here's what I've done:

Right at the start of function getAlbum, I hard-coded aid=1290, and that returned that artists.length=1.

Doesn't sound like the right answer, as the resulting playlist below shows multiple artists (with AlbumArtist tagged also).

If I sort my collection by Album I get the same result -one album with tracks intermingled, so it looks like the schema has regressed to the old 1.4 behavior you reference in the code comments, except that the your just-in-case is no longer working.

If I get more real work done tomorrow I may look to open a bug on Amarok (Version 2.5.0 here).


/m/flac/D/Daft Punk/Daft Punk - 2001 - Discovery/01 - One More Time.flac
/m/flac/E/Electric Light Orchestra/Electric Light Orchestra - 1979 - Discovery/01 - Shine a Little Love.flac
/m/flac/D/Daft Punk/Daft Punk - 2001 - Discovery/02 - Aerodynamic.flac
/m/flac/E/Electric Light Orchestra/Electric Light Orchestra - 1979 - Discovery/02 - Confusion.flac
/m/flac/D/Daft Punk/Daft Punk - 2001 - Discovery/03 - Digital Love.flac
/m/flac/E/Electric Light Orchestra/Electric Light Orchestra - 1979 - Discovery/03 - Need Her Love.flac
/m/flac/D/Daft Punk/Daft Punk - 2001 - Discovery/04 - Harder, Better, Faster, Stronger.flac
/m/flac/E/Electric Light Orchestra/Electric Light Orchestra - 1979 - Discovery/04 - The Diary of Horace Wimp.flac - Jan 16 2013
Random Album

Amarok 2.x Scripts by mvanzin 30 comments

Hi -awesome script for a function that should really be mandatory everywhere.
Just had the first-i-have-ever-noticed experience where two albums by different artists got randomly selected due to the same Album Name, and playt Track 1 Artist 1,Track 1 Artist 2,Track 2 Artist 1,Track 2 Artist 2.
Not sure if this is the script or Amarok (which I'm certain used to discern separate albums with the same name?)

Thanks for the cool script! - Jan 15 2013
Random Album

Amarok 2.x Scripts
by mvanzin

6 .4
Jan 15 2013