nekitdev/gd.py

'Song' Has no attribute 'artist'

Closed this issue · 1 comments

`import asyncio

import gd

SONG_ID = 1081309
SONG = "{} by {} (ID: {}, size: {} MB)"

async def main() -> None:
client = gd.Client()
song = await client.get_song(SONG_ID)
print(SONG.format(song.name, song.artist.name, song.id, song.size))

asyncio.run(main())`

The current API is not in sync with the latest PyPI release.
If you wish to try the new version, consider installing it directly via:

$ python -m pip install https://github.com/nekitdev/gd.py/archive/main.zip