[PATCH] more fine-grained iDevice support in media-player-info

Christophe Fergeau cfergeau at gmail.com
Tue Jun 14 02:10:49 PDT 2011


2011/6/13 Rajeesh K Nambiar <rajeeshknambiar at gmail.com>:
> As per Tom's suggestion, even if we decide to use libgpod for
> iDevices, it would be better to extend the m-p-i protocols that would
> benefit other devices as well. He has asked me to send a refined
> patch, hence attaches a patch against kdelibs. Does this make sense,

Don't you have a .ini file/.desktop file parser that could be reused?
In addition to that, you want to parse .is_audio_player files on the
device so that users can manually override media player information.
Returning a list of strings doesn't seem too good to me, especially
returning directly strings from .mpi files, I'd go with enums after
having fully parsed the .mpi file. I think the current code will
return ("storage", "ipod") for iPods, which will easily be
misinterpreted by users of this API.

> and also is it possible to avoid hard coding of
> "usr/share/media-player-info/" ?

The media-player-info database is in $XDG_DATA_DIRS/media-player-info,
not in /usr/share/media-player-info.


More information about the devkit-devel mailing list