Rockbox

Tasklist

FS#1059 - Display right position of track in shuffled directory

Attached to Project: Rockbox
Opened by Anonymous Submitter - Sunday, 09 March 2003, 19:31 GMT
Last edited by Björn Stenberg (zagor) - Wednesday, 04 June 2003, 14:18 GMT
Task Type Patches
Category Themes
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

If "shuffle" and "play selected first" are on, and you play
a directory,
then the playlist starts with the selected track, which has
a random position.
=> %pp displays for instance 5, 6, 7, 8, 1, 2, 3, 4
(instead of 1,...,8)

This patch simply uses the "playlist.first_index" to display
the rigth position (from 1 to N) in WPS and ID3.

This task depends upon

Closed by  Björn Stenberg (zagor)
Wednesday, 04 June 2003, 14:18 GMT
Reason for closing:  Accepted
Comment by Anonymous Submitter - Monday, 10 March 2003, 10:45 GMT

this would come in handy !

please include in rockbox!
Comment by Björn Stenberg (zagor) - Tuesday, 11 March 2003, 09:11 GMT

I'd prefer if you make a new tag for this, such as %pi (playlist index).
Comment by Anonymous Submitter - Wednesday, 12 March 2003, 00:43 GMT

>> I'd prefer if you make a new tag for this, such as %pi
(playlist index).

I thought of this patch as a bugfix rather than a new feature,
because it's really the position of the track within the "playlist" :
- *.m3u + shuffle on/off
current "%pp" displays 1,2,3,...fine
"wanted %pi" displays 1,2,3,...fine

- directory + shuffle OFF
current "%pp" displays 1,2,3,...fine
"wanted %pi" displays 1,2,3,...fine

- directory + shuffle ON + "play selected first" OFF
current "%pp" displays 1,2,3,...fine
"wanted %pi" displays 1,2,3,...fine

- directory + shuffle ON + "play selected first" ON
and you want to start with the 3rd track (e.g)
current "%pp" displays 7,8,1,2,3,4,5,6 (that's the point !)
"wanted %pi" displays 1,2,3,...better

In this example, "7" is random : it's the index of the (chosen)
3rd track in the shuffled playlist.
IMO, it's not "human-readable", and not a wanted feature.
(in fact, I did use the current %pp code for debug purpose,
and I renamed it "%pi" as it is indeed an index :-)

If you want the "%pi" tag anyway, I will do it.

Pascal.

Loading...