Line # | Kind | Name | Docs |
---|---|---|---|
39 | Class | NoAvailableCompletionError | Undocumented |
43 | Class | CompleteAlbumsForArtist | Undocumented |
177 | Function | add_action_complete_albums_for_artist | Undocumented |
188 | Class | CompleteTracksForAlbum | Undocumented |
344 | Function | add_action_complete_tracks_for_album | Undocumented |
355 | Function | album_matcher | Undocumented |
358 | Function | track_matcher | Undocumented |
364 | Function | compare_albums | Undocumented |
367 | Function | compare_tracks | Undocumented |
373 | Function | insert_sorted | Insert item into model keeping
model sorted.
|
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 ) |