Fixed some bugs and cleaned up some code

This commit is contained in:
cloudwithax 2021-11-04 21:06:29 -04:00
parent 43edfacda1
commit 3d20c8cf5e
6 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ if discord.__version__ != "2.0.0a":
"using 'pip install git+https://github.com/Rapptz/discord.py@master'"
)
__version__ = "1.1.1"
__version__ = "1.1.2"
__title__ = "pomice"
__author__ = "cloudwithax"

View File

@ -7,7 +7,7 @@ class Filter:
self.payload = None
class Equalizer:
class Equalizer(Filter):
"""
Filter which represents a 15 band equalizer.
You can adjust the dynamic of the sound using this filter.

View File

@ -11,7 +11,7 @@ class Album:
self.total_tracks = data["total_tracks"]
self.id = data["id"]
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:
return (

View File

@ -12,7 +12,7 @@ class Playlist:
self.total_tracks = data["tracks"]["total"]
self.id = data["id"]
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:
return (

View File

@ -12,7 +12,7 @@ class Track:
else:
self.image = None
self.uri = data["external_urls"]["spotify"]
self.uri = f"https://open.spotify.com/track/{self.id}"
def __repr__(self) -> str:
return (

View File

@ -6,7 +6,7 @@ with open("README.md") as f:
setuptools.setup(
name="pomice",
author="cloudwithax",
version="1.1.1",
version="1.1.2",
url="https://github.com/cloudwithax/pomice",
packages=setuptools.find_packages(),
license="GPL",