Fixed some bugs and cleaned up some code
This commit is contained in:
parent
43edfacda1
commit
3d20c8cf5e
|
|
@ -11,7 +11,7 @@ if discord.__version__ != "2.0.0a":
|
||||||
"using 'pip install git+https://github.com/Rapptz/discord.py@master'"
|
"using 'pip install git+https://github.com/Rapptz/discord.py@master'"
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "1.1.1"
|
__version__ = "1.1.2"
|
||||||
__title__ = "pomice"
|
__title__ = "pomice"
|
||||||
__author__ = "cloudwithax"
|
__author__ = "cloudwithax"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class Filter:
|
||||||
self.payload = None
|
self.payload = None
|
||||||
|
|
||||||
|
|
||||||
class Equalizer:
|
class Equalizer(Filter):
|
||||||
"""
|
"""
|
||||||
Filter which represents a 15 band equalizer.
|
Filter which represents a 15 band equalizer.
|
||||||
You can adjust the dynamic of the sound using this filter.
|
You can adjust the dynamic of the sound using this filter.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class Album:
|
||||||
self.total_tracks = data["total_tracks"]
|
self.total_tracks = data["total_tracks"]
|
||||||
self.id = data["id"]
|
self.id = data["id"]
|
||||||
self.image = data["images"][0]["url"]
|
self.image = data["images"][0]["url"]
|
||||||
self.uri = data["external_urls"]["spotify"]
|
self.uri = f"https://open.spotify.com/album/{self.id}"
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Playlist:
|
||||||
self.total_tracks = data["tracks"]["total"]
|
self.total_tracks = data["tracks"]["total"]
|
||||||
self.id = data["id"]
|
self.id = data["id"]
|
||||||
self.image = data["images"][0]["url"]
|
self.image = data["images"][0]["url"]
|
||||||
self.uri = data["external_urls"]["spotify"]
|
self.uri = f"https://open.spotify.com/playlist/{self.id}"
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Track:
|
||||||
else:
|
else:
|
||||||
self.image = None
|
self.image = None
|
||||||
|
|
||||||
self.uri = data["external_urls"]["spotify"]
|
self.uri = f"https://open.spotify.com/track/{self.id}"
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -6,7 +6,7 @@ with open("README.md") as f:
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="pomice",
|
name="pomice",
|
||||||
author="cloudwithax",
|
author="cloudwithax",
|
||||||
version="1.1.1",
|
version="1.1.2",
|
||||||
url="https://github.com/cloudwithax/pomice",
|
url="https://github.com/cloudwithax/pomice",
|
||||||
packages=setuptools.find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
license="GPL",
|
license="GPL",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue