I know this is quite an old post, but I think I have encountered a similar
problem. I wanted to create a fairly long playlist (180 odd) and randomise
the play order but without repeating any entries in the list. I found that
using the clementine shuffle mode seemed for some reason to repeat some
tracks before many of the others had been played. I suspect this is a pure
random selection (ie. true random selection does not preclude a repeat
selection) but this is not what I wanted. After much deliberation and
tinkering I concluded the best way to achieve what I wanted was to first
create and save a playlist, then use an external program to "randomise it's
order so I could just play the list from start to end without needing the
clementine shuffle mode. Failing to find anything to achieve this I wrote a
simple script to "shuffle" a saved clementine xspf playlist. It could
probably be tidied up further, but for anyone interested I've copied it
below...
# Script to shuffle the tracks in an xspf playlist.
#
# Place this scriptfile into the directory in which the playlist
# .xspf files reside.
#
# invoke the script in a shell command window as follows...
# change directory to the folder holding the playlist (and this
# script).
#
# Useage: ./shuffle.sh <infile> <outfile>
#
# Where <infile> is the name of the playlist you wish to shuffle
# and <outfile> is the name you wish to give to the shuffled playlist.
#
INFILE=$1
OUTFILE=$2
#
echo "Input from $INFILE"
#
head -n 3 $INFILE > $OUTFILE # Write header records to outfile
#
# Use awk program to place all track records on single lines to
# make it possile for shuf to be used to shuffle the list.
awk '
{
if (NR < 4 ){ next}
if ( $1 == "</trackList>" || $1 == "</playlist>" ) { next }
if ( $1 == "</track>" ) { sub(/ +/,"") ;printf "%s\n",$0; next }
if ( $1 != "</track>" ){ sub(/ +/,"") ;printf "%s",$0; next }
}
' $INFILE | shuf >> $OUTFILE # Extract tracklist, shuffle it and append to
outfile
#
RECORDS=$(wc -l $OUTFILE | awk '{print $1}') # Count records
let "RECORDS = $RECORDS - 3 " # Adjust for header records
echo $RECORDS records shuffled into $OUTFILE # Report number of shuffled
records
#
tail -n 2 $INFILE >> $OUTFILE # Add end of trackList and end of playlist
markers.
Hope this may be of use to anyone needing a similar facility.
(note: each time the script is run a different order will be achieved)
On Thursday, 20 December 2018 14:54:12 UTC, Cornel Diaconu wrote:
>
> HI,
> I had a very strange and annoying situation with my Clementine 1.3.1
> installed on my Opensuse 15.0 box (Clementine is installed from Opensuse's
> repository).
> I load in the player a number of music files (almost entirely mp3) and
> build up a list that should rarely reaches 14 hours.
>
> I start play and when I check the player again after some 15 hours passed,
> almost always the play is still on, and a serious bunch of files are not
> yet played (not only it did not finish in 14 hours as it should, it's still
> playing after 15 hours, and it's not even at the last file in the playlist)
> !
>
> So, it seems Clementine is re-playing some files, but I wasn't able to
> grasp which ones, at what particular rhythm is does this strange re-play.
> The thing is that those double plays are not scrobbled twice on last.fm,
> but only once (at least this is normal) !
>
> I believe that it's related to the last.fm plugin, but can't put the
> finger on what exactly; anyway, I can't really give up on this plugin,
> since it's mandatory for me that all plays should be scrobbled !
>
> Some time ago (1-2 years back, I thought that it's related to some heavy
> disk activity on my system (like rsync-ying some folders over night, and
> thus getting in the way of normal functioning of Clementine); but I'm not
> so sure anymore - it's happening almost daily, and with or without such
> disk activity.
>
> This turned out so annoying that I decided to ask here: did anyone else
> has this problem ?
>
>
--
You received this message because you are subscribed to the Google Groups
"Clementine Music Player" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/clementine-player/edfa6dff-11e6-463e-ad05-06511934b121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.