mirror of
https://github.com/cooperhammond/irs.git
synced 2025-06-30 14:48:14 +00:00
better argument rerouting in the aliases for album and playlist
This commit is contained in:
parent
2230621e86
commit
94090621c2
|
@ -193,12 +193,12 @@ album".split(" ")
|
||||||
|
|
||||||
return ("https://youtube.com" + self.code["href"], self.code["title"])
|
return ("https://youtube.com" + self.code["href"], self.code["title"])
|
||||||
|
|
||||||
def album(self, title): # Alias for `spotify_list("album", ...)`
|
def album(self, title, artist=None): # Alias for `spotify_list("album", ...)`
|
||||||
return self.spotify_list("album", title)
|
return self.spotify_list("album", title=title, artist=artist)
|
||||||
|
|
||||||
def playlist(self, title, username):
|
def playlist(self, title, username):
|
||||||
# Alias for `spotify_list("playlist", ...)`
|
# 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):
|
def spotify_list(self, type=None, title=None, username=None, artist=None):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue