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 563403 - Insufficient options for importing folder hierarchy in preferences
Insufficient options for importing folder hierarchy in preferences
Status: RESOLVED DUPLICATE of bug 489861
Product: banshee
Classification: Other
Component: Importing
1.4.1
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 560583 564518 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-06 00:35 UTC by Dionisio E Alonso
Modified: 2009-11-11 00:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adds formating options to Folder Hierarchy (3.23 KB, patch)
2008-12-09 12:58 UTC, Andreas Neustifter
needs-work Details | Review

Description Dionisio E Alonso 2008-12-06 00:35:36 UTC
When selecting the Folder Hierarchy as anyone which includes the Artist, it selects the Track artist, and not the Album Artist. Then, in the case of album compilations, it creates one folder per track artist breaking the compilation as it in the filesystem.

In that case, it would be better to look first if the track has an Album Artist field set, and then use it for the Folder Hierarchy, and if not, then use the track artist field. Other possible solution is to add to the options the same options that has Artist, but also with "Album Artist" in the url.
Comment 1 Andreas Neustifter 2008-12-09 12:58:59 UTC
Created attachment 124264 [details] [review]
adds formating options to Folder Hierarchy

This patch contains:

*) a %album_artist% field that defaults to the %artist% if track is not part of a compilation.
(This sorts compilations with different track artists into a single folder.)

*) a %year_string% field that is only non-empty if track is not part of a compilation.
(This sorts compilations with different years in the tracks into a single folder.)

*) a %disc_string% field that is only non-empty if there is more than one disc to an album.
(This sorts different discs into different folders if there is more than one disc. This is necessary for stupid players that don't honour the disc number.)

Grettings, Andi
Comment 2 Bertrand Lorentz 2008-12-14 19:49:05 UTC
Thanks for the patch !

This patch provides a superset of the features from the one in bug #560583 (disc number pattern).

A few comments :
1. I don't really like the "*_string" names. Maybe %album_year% and %disc% or %disc_number% would be better ?

2. The "year" token probably shouldn't include the parenthesis. You can add them in the pattern anyway : 
"%album% - %album_artist% (%album_year%) %path_sep%%disc_string%"

3. The "disc" token shouldn't contain "of", it's not flexible and not localizable. Creating 2 separate tokens %disc_number% and %disc_count% would be more flexible, in particular for those who only want the disc number.
As above, you can achieve the same result with a pattern :
"%disc_number% of %disc_count%"
Comment 3 Bertrand Lorentz 2008-12-14 20:00:58 UTC
*** Bug 564518 has been marked as a duplicate of this bug. ***
Comment 4 Gabriel Burt 2009-01-13 19:07:52 UTC
*** Bug 560583 has been marked as a duplicate of this bug. ***
Comment 5 Gabriel Burt 2009-01-13 19:10:55 UTC
On bug #560583 Shaun has a nifty patch (http://bugzilla.gnome.org/attachment.cgi?id=124230) for including the disc# in the filename, iff there is more than one disc for the album.  This is a good idea we should include.  I think we should have a "Custom..." option in our current dropdown that opens a new dialog for editing in some fashion a custom pattern.
Comment 6 Andreas Neustifter 2009-02-04 09:33:50 UTC
(In reply to comment #2)
> A few comments :
> 2. The "year" token probably shouldn't include the parenthesis. You can add
> them in the pattern anyway : 
> "%album% - %album_artist% (%album_year%) %path_sep%%disc_string%"
I wrote the %year_string% in this way because for compilations (where %album_year% would be empty) the string " ()" would be appended to the album name when putting the parenthesis in the format string. In my patch the year disappears completely for compilations.

> 3. The "disc" token shouldn't contain "of", it's not flexible and not
> localizable. Creating 2 separate tokens %disc_number% and %disc_count% would be
> more flexible, in particular for those who only want the disc number.
> As above, you can achieve the same result with a pattern :
> "%disc_number% of %disc_count%"
Same problem here, your solution would give "Disc 1 of 1" folders in _every_ album folder. So its a context dependent string that is completely empty in case there is only one disc (or no disc info) and creates new folders "Disc 1 of x", "Disc 2 of x", ... if there are at least 2 discs.
As for the "of" and "Disc", yes, they should be removed leaving only something like "x-y" or the like.

> 1. I don't really like the "*_string" names. Maybe %album_year% and %disc% or
> %disc_number% would be better ?
And the above points are the reason I named them *_strings since they are an aggregation of information (from numbers) that have also some context dependent formatting. 

(In reply to comment #5)
>I think we should have a "Custom..." option in our current dropdown that
> opens a new dialog for editing in some fashion a custom pattern.
Yes, this would be great. My codings skills didn't permit me to add GUI code :-)
Comment 7 Dionisio E Alonso 2009-03-24 00:46:28 UTC
I wonder why this patch isn't added in the mainstream yet.
Comment 8 Alexander Kojevnikov 2009-11-11 00:50:46 UTC
Andreas, thanks for your patch and sorry we were slow to review it.

Most of the points it addresses are already in git master, see commit 369a998.

I'm closing the bug as a duplicate of bug 489861 which tracks the remaining issues related to the library organisation. If I missed anything, please comment in that bug.

*** This bug has been marked as a duplicate of bug 489861 ***