[booblyrics] able to search by artist or songtitle
This commit is contained in:
parent
74e6e30b55
commit
0628802b72
6 changed files with 66 additions and 18 deletions
|
|
@ -41,10 +41,13 @@ class ICapLyrics(IBaseCap):
|
|||
"""
|
||||
Lyrics websites.
|
||||
"""
|
||||
def iter_lyrics(self, pattern):
|
||||
def iter_lyrics(self, criteria, pattern):
|
||||
"""
|
||||
Search lyrics and iterate on results.
|
||||
Search lyrics by artist or by song
|
||||
and iterate on results.
|
||||
|
||||
:param criteria: 'artist' or 'song'
|
||||
:type criteria: str
|
||||
:param pattern: pattern to search
|
||||
:type pattern: str
|
||||
:rtype: iter[:class:`SongLyrics`]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue