portable_audio_player.filepath_format gone?
Gabriel Burt
gabriel.burt at gmail.com
Fri Aug 4 07:58:24 PDT 2006
On 8/4/06, James Doc Livingston <doclivingston at gmail.com> wrote:
> On Fri, 2006-07-28 at 11:04 -0500, Gabriel Burt wrote:
> > I've attached a patch that just clarifies the role of the
> > portable_audio_device.folder_depth key. I think this is a pretty
> > simple way to solve this problem, and won't be too hard for app
> > developers to implement.
>
> Are there any guidelines on what the directories should be called for
> various depths?
No, there aren't. You can see how I implemented if for Banshee here:
http://cvs.gnome.org/viewcvs/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs?r1=1.11&r2=1.12
> And more importantly are there devices where it matters?
That is the important question - otherwise it's just more of a
preference/style issue. I don't know of any. If there are, then we
need to reconsider the filepath_format key or something like it.
> * Depth 0 is obvious.
> * Should Depth 1 be "Artist/", "Artist - Album/" or something else?
> * I guess depth 2 would probably be "Artist/Album"
> * What does should happen for depth >= 3?
For >=3 I just used directories of the artist name broken into
consequtively longer pieces (eg B/Ba/Bac/Bach/Album/Title). I doubt
it will ever be used though.
I think if metadata is missing you can do what you want - using
information from the file name, translating "Unknown" into the user's
locale, etc. I don't think that level of detail belongs in HAL
(unless there are devices that do require such strict conventions).
Thanks for the feedback.
Gabriel
More information about the hal
mailing list