Some code cleanup before release
This commit is contained in:
parent
2e0daa4840
commit
10506a1fbe
|
|
@ -1,4 +1,3 @@
|
||||||
from re import S
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,7 @@ class Client:
|
||||||
return Track(data)
|
return Track(data)
|
||||||
elif spotify_type == "album":
|
elif spotify_type == "album":
|
||||||
return Album(data)
|
return Album(data)
|
||||||
|
else:
|
||||||
# processing a playlist result
|
|
||||||
tracks = [Track(track["track"]) for track in data["tracks"]["items"]]
|
tracks = [Track(track["track"]) for track in data["tracks"]["items"]]
|
||||||
next_page_url = data["tracks"]["next"]
|
next_page_url = data["tracks"]["next"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,5 @@ class SpotifyRequestException(Exception):
|
||||||
|
|
||||||
|
|
||||||
class InvalidSpotifyURL(Exception):
|
class InvalidSpotifyURL(Exception):
|
||||||
|
"""An invalid Spotify URL was passed"""
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -14,7 +14,7 @@ setuptools.setup(
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=['discord.py>=1.7.1'],
|
install_requires=['discord.py>=2.0.0a'],
|
||||||
extra_require=None,
|
extra_require=None,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Framework :: AsyncIO",
|
"Framework :: AsyncIO",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue