mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
Merge pull request #25 from kepoorhampond/better-alias-rerouting
Better alias rerouting
This commit is contained in:
commit
1c69267d0e
|
@ -193,12 +193,12 @@ album".split(" ")
|
|||
|
||||
return ("https://youtube.com" + self.code["href"], self.code["title"])
|
||||
|
||||
def album(self, title): # Alias for `spotify_list("album", ...)`
|
||||
return self.spotify_list("album", title)
|
||||
def album(self, title, artist=None): # Alias for `spotify_list("album", ...)`
|
||||
return self.spotify_list("album", title=title, artist=artist)
|
||||
|
||||
def playlist(self, title, username):
|
||||
# Alias for `spotify_list("playlist", ...)`
|
||||
return self.spotify_list("playlist", title, username)
|
||||
return self.spotify_list("playlist", title=title, username=username)
|
||||
|
||||
def spotify_list(self, type=None, title=None, username=None, artist=None):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue