Class e.p.i.i.IpodResource(ResourceProvider):

Part of elisa.plugins.ipod.ipod_resource View In Hierarchy

This class implements iPod support
Line # Kind Name Docs
44 Method __init__ Undocumented
48 Method get the action parameter of the uri tells what informations are
107 Method _get_tracks Undocumented
197 Method _parse_tracks parse all tracks on the ipod and store them in a TrackListModel

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
116 Method put Put one resource into another. Both resources are identified with URIs.
138 Method delete Delete a Resource represented by a URI.

Inherited from Component (via ResourceProvider):

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.
130 Method initialize Initialize the component.
142 Method clean Clean the component.
def __init__(self):
Undocumented
def get(self, uri, model):
the action parameter of the uri tells what informations are requested, but at the moment only tracks can be requested

the search parameter tells which tracks should be requested

possible search values are: albums, songs and artists (which is the default search)

the search can also be narrowed by setting artist and/or album parameter to search only for example for all albums of a given artist.

for each different request, a different model is returned, which is always a list model that contains a list of artist, album or song models

examples (all for tracks at the moment): get songs from artist a: ipod://mnt_point/?action=tracks&search=songs&artist=a

get albums from artist a: ipod://mnt_point/?action=tracks&search=albums&artist=a

get all artists: ipod://mnt_point/?action=tracks&search=artist or (because it is the default search): ipod://mnt_point/?action=tracks

contextual models are not supported!

def _get_tracks(self, db, uri, model):
Undocumented
def _parse_tracks(self, db, path):
parse all tracks on the ipod and store them in a TrackListModel
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.