mirror of
https://github.com/cooperhammond/irs.git
synced 2025-01-04 19:25:27 +00:00
Merge pull request #25 from kepoorhampond/better-alias-rerouting
Better alias rerouting
This commit is contained in:
commit
f10f1ef36b
|
@ -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:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'irs',
|
name = 'irs',
|
||||||
version = '6.3.6',
|
version = '6.4.6',
|
||||||
description = 'A music downloader that just gets metadata.',
|
description = 'A music downloader that just gets metadata.',
|
||||||
url = 'https://github.com/kepoorhampond/irs',
|
url = 'https://github.com/kepoorhampond/irs',
|
||||||
author = 'Kepoor Hampond',
|
author = 'Kepoor Hampond',
|
||||||
|
|
Loading…
Reference in a new issue