diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe6d34b..54005ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: rev: 23.1.0 hooks: - id: black - language_version: python3.8 + language_version: python3.10 - repo: https://github.com/asottile/blacken-docs rev: 1.13.0 hooks: @@ -38,4 +38,4 @@ repos: - id: pycln default_language_version: - python: python3.8 + python: python3.10 diff --git a/pomice/__init__.py b/pomice/__init__.py index 6052627..cfcd4dd 100644 --- a/pomice/__init__.py +++ b/pomice/__init__.py @@ -20,7 +20,7 @@ if not discord.version_info.major >= 2: "using 'pip install discord.py'", ) -__version__ = "2.3.2" +__version__ = "2.3.3a" __title__ = "pomice" __author__ = "cloudwithax" __license__ = "GPL-3.0" diff --git a/pomice/objects.py b/pomice/objects.py index 2d1f0b1..063bd71 100644 --- a/pomice/objects.py +++ b/pomice/objects.py @@ -78,7 +78,7 @@ class Track: self.author: str = info.get("author", "Unknown Author") self.uri: str = info.get("uri", "") self.identifier: str = info.get("identifier", "") - self.isrc: str = info.get("isrc", "") + self.isrc: Optional[str] = info.get("isrc", None) self.thumbnail: Optional[str] = info.get("thumbnail") if self.uri and self.track_type is TrackType.YOUTUBE: diff --git a/pomice/spotify/objects.py b/pomice/spotify/objects.py index 288bd56..c1d8e50 100644 --- a/pomice/spotify/objects.py +++ b/pomice/spotify/objects.py @@ -18,7 +18,7 @@ class Track: self.length: float = data["duration_ms"] self.id: str = data["id"] - self.issrc: Optional[str] = None + self.isrc: Optional[str] = None if data.get("external_ids"): self.isrc = data["external_ids"]["isrc"]