fix isrcs not being correctly parsed
This commit is contained in:
parent
2ddbb5d91a
commit
bf144a783c
|
|
@ -14,7 +14,7 @@ repos:
|
||||||
rev: 23.1.0
|
rev: 23.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.8
|
language_version: python3.10
|
||||||
- repo: https://github.com/asottile/blacken-docs
|
- repo: https://github.com/asottile/blacken-docs
|
||||||
rev: 1.13.0
|
rev: 1.13.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
@ -38,4 +38,4 @@ repos:
|
||||||
- id: pycln
|
- id: pycln
|
||||||
|
|
||||||
default_language_version:
|
default_language_version:
|
||||||
python: python3.8
|
python: python3.10
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ if not discord.version_info.major >= 2:
|
||||||
"using 'pip install discord.py'",
|
"using 'pip install discord.py'",
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "2.3.2"
|
__version__ = "2.3.3a"
|
||||||
__title__ = "pomice"
|
__title__ = "pomice"
|
||||||
__author__ = "cloudwithax"
|
__author__ = "cloudwithax"
|
||||||
__license__ = "GPL-3.0"
|
__license__ = "GPL-3.0"
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ class Track:
|
||||||
self.author: str = info.get("author", "Unknown Author")
|
self.author: str = info.get("author", "Unknown Author")
|
||||||
self.uri: str = info.get("uri", "")
|
self.uri: str = info.get("uri", "")
|
||||||
self.identifier: str = info.get("identifier", "")
|
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")
|
self.thumbnail: Optional[str] = info.get("thumbnail")
|
||||||
|
|
||||||
if self.uri and self.track_type is TrackType.YOUTUBE:
|
if self.uri and self.track_type is TrackType.YOUTUBE:
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class Track:
|
||||||
self.length: float = data["duration_ms"]
|
self.length: float = data["duration_ms"]
|
||||||
self.id: str = data["id"]
|
self.id: str = data["id"]
|
||||||
|
|
||||||
self.issrc: Optional[str] = None
|
self.isrc: Optional[str] = None
|
||||||
if data.get("external_ids"):
|
if data.get("external_ids"):
|
||||||
self.isrc = data["external_ids"]["isrc"]
|
self.isrc = data["external_ids"]["isrc"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue