1
0
Fork 0
mirror of synced 2024-06-28 11:10:27 +12:00

Changed name of url argument, as kwargs included url

This commit is contained in:
phxntxm 2016-08-21 01:00:54 -05:00
parent e3dfb91041
commit 0c622b8224

View file

@ -17,15 +17,15 @@ class VoicePlayer:
# Before the video is actually downloaded, which happens in our audio player task # Before the video is actually downloaded, which happens in our audio player task
# For example, is_done() will not exist on this object, which could be called later # For example, is_done() will not exist on this object, which could be called later
# However, it should not ever be, as we overwrite this object with the StreamPlayer in our audio task # However, it should not ever be, as we overwrite this object with the StreamPlayer in our audio task
def __init__(self, url, **kwargs): def __init__(self, song, **kwargs):
self.url = url self.url = song
self.views = kwargs.get('view_count') self.views = kwargs.get('view_count')
self.is_live = bool(kwargs.get('is_live')) self.is_live = bool(kwargs.get('is_live'))
self.likes = kwargs.get('likes') self.likes = kwargs.get('likes')
self.dislikes = kwargs.get('dislikes') self.dislikes = kwargs.get('dislikes')
self.duration = kwargs.get('duration') self.duration = kwargs.get('duration')
self.uploader = kwargs.get('uploader') self.uploader = kwargs.get('uploader')
if 'twitch' in url: if 'twitch' in song:
self.title = kwargs.get('description') self.title = kwargs.get('description')
self.description = None self.description = None
else: else: