After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526649 - Default filename pattern shoud include disc number
Default filename pattern shoud include disc number
Status: RESOLVED FIXED
Product: sound-juicer
Classification: Applications
Component: metadata
2.22.x
Other Linux
: Normal enhancement
: ---
Assigned To: Sound Juicer Maintainers
Sound Juicer Maintainers
: 555433 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-07 05:31 UTC by Andrew Starr-Bochicchio
Modified: 2009-04-12 13:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Andrew Starr-Bochicchio 2008-04-07 05:31:52 UTC
Reported on Launchpad (https://bugs.edge.launchpad.net/ubuntu/+source/sound-juicer/+bug/212846):

"Binary package hint: sound-juicer

sound-juicer: 2.22.0-0ubuntu1

Sound-juicer has gained knowledge of the disc number in a multi-disc set (in 2.21.3 according to NEWS.gz)
unfortunately it doesn't include this in the extracted filename; this results in a very strange ordering; i.e.
I have it set to create files as Artist/Disc Name/TrackNumber - Trackname - e.g.

Stallman/Free songs/01 - Free Software Song.ogg

Now lets say that was the first track of the first CD, when I extract the 2nd CD I would get

Stallman/Free songs/01 - Guantanamero.ogg

So the two discs merge together and aren't seperable; the disc number needs to be included somewhere in the
file name - e.g.

Stallman/Free songs [1]/01 - Free Software Song.ogg"
Comment 1 Ross Burton 2008-04-07 07:17:03 UTC
If you change the filename templates to %dn or %dN instead of %tn or %tN, then you get the disk number embedded in the filename:

%dn: Disc 1 - 2 - Foo
%dN: d1t2 - Foo
Comment 2 Dave Gilbert 2008-05-05 16:59:02 UTC
Hi Ross,
  Thanks - is this possible in the path rather than the track (I tend to have the different CDs in a set as different directories at the moment)?

 It would be nice to have this on one of the user selectable options; although I'm not sure it feels right to have the disc numbers there for a case where there is just 1 CD.
Comment 3 Eddy Mulyono 2008-08-04 19:05:06 UTC
It might be useful to document these extra file_patterns from src/sj-extracting.c in data/sound-juicer.schemas.in
Comment 4 Ross Burton 2008-10-07 20:18:35 UTC
*** Bug 555433 has been marked as a duplicate of this bug. ***
Comment 5 Ross Burton 2009-02-07 17:49:47 UTC
Fixed in svn.
Comment 6 Dave Gilbert 2009-04-12 13:02:58 UTC
Thanks - is it the intention that %dn doesn't 0 pad the track number, and hence they aren't ASCII ordered? (Where as %dN does).

(In 2.26.0)