PythonistaGuild / Wavelink

A powerful Lavalink library for Discord.py.
https://wavelink.dev
MIT License
389 stars 179 forks source link

fix: __repr__ on youtube playlists #214

Closed Middledot closed 1 year ago

Middledot commented 1 year ago

YouTubePlaylist inherits Playable. Playable has a __repr which YTP uses. That __repr needs a source. YTP never gets a source set.

  File "C:\langs\Python310\lib\site-packages\wavelink\tracks.py", line 128, in __repr__
    return f'Playable: source={self.source}, title={self.title}'
AttributeError: 'YouTubePlaylist' object has no attribute 'source'

This should fix it

EvieePy commented 1 year ago

Thanks 👍