1

So I'm trying to figure out how to make Clementine automatically create a playlist of 50 songs from my library when I open it. Is this possible? I'm using the latest ubuntu btw.

user261058
  • 11
  • 1

2 Answers2

0

It is possible, but not without some coding at least for this solution.

What you would do is write a script that would look at your library, pick X songs by filename (i would so this by using ls folder, and the parsing the file locations with a "random function" like milliseconds.) When this parsing is complete, it should have stored it as a single string of files seperated by a space. This string would be tagged onto

clementine --append "your-string-of-music-"

All these pieces would be in one executable script.

Maybe there already is a random functions for this. If not, good luck and have fun!

Mr.Lee
  • 891
  • Thank you for the answer. I'm actually trying to learn how to code so this may actually push me to continue learning. Thanks for the advice. – user261058 Mar 24 '14 at 02:42
0

Try this:

find `pwd -P` -name "*.mp3" | sort --random-sort | head -n 50 | xargs -d '\n' clementine --append 2> /dev/null

pwd gives full path, and -P (--physical) avoid all symlinks.

Give head the number of files to append.

pabloab
  • 47