This commit is contained in:
diamond75 2025-04-04 22:26:22 +13:00
parent eeb340554e
commit 3520939452
2 changed files with 5 additions and 2 deletions

View file

@ -232,8 +232,9 @@ class Track(PlayableContentFeeder.LoadedStream, Playable):
try:
return self.__lyrics
except AttributeError:
print(self.track)
self.__lyrics = Lyrics(
self.__api.invoke_url(LYRICS_URL + bytes_to_base62(self.track.hex_id()))[
self.__api.invoke_url(LYRICS_URL + bytes_to_base62(self.track.gid))[
"lyrics"
]
)

View file

@ -1,3 +1,5 @@
import binascii
from argparse import Action
from enum import Enum, IntEnum
from pathlib import Path
@ -216,5 +218,5 @@ def bytes_to_base62(idstr: bytes) -> str:
Returns:
base62
"""
print (idstr)
print (binascii.hexlify(idstr))
return BASE62.encode(idstr, 22).decode()