# Module e.p.y.library_completion

Part of elisa.plugins.yesfm

No module docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
35 | Class | NoAvailableCompletionError | Undocumented
38 | Class | CompleteAlbumsForArtist | Undocumented
171 | Function | add_action_complete_albums_for_artist | Undocumented
178 | Class | CompleteTracksForAlbum | Undocumented
333 | Function | add_action_complete_tracks_for_album | Undocumented
340 | Function | album_matcher | Undocumented
343 | Function | track_matcher | Undocumented
349 | Function | compare_albums | Undocumented
352 | Function | compare_tracks | Undocumented
358 | Function | insert_sorted | Insert `item` into `model` keeping `model` sorted.

def add_action_complete_albums_for_artist(controller):
Undocumented
def add_action_complete_tracks_for_album(controller):
Undocumented
def album_matcher(album1, album2):
Undocumented
def track_matcher(track1, track2):
Undocumented
def compare_albums(album1, album2):
Undocumented
def compare_tracks(track1, track2):
Undocumented
def insert_sorted(model, item, matcher, comparator):
Insert `item` into `model` keeping `model` sorted. It uses `matcher` to make sure `model` is not already in `model`. It uses `comparator` to compare `item` with the other elements of `model`. Return True if `item` was inserted, False otherwise.

Parameters | model | list in which to insert the item (type: list )
| item | item to insert (type: object )
| matcher | function returning True if its two arguments are identical, False otherwise (type: callable )
| comparator | function returning True if its first argument is smaller than its second one, False otherwise (type: callable )
Returns | (type: bool )