From 0c622b8224254f39a46e645ef0fce17ab46ba1d3 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 21 Aug 2016 01:00:54 -0500 Subject: [PATCH] Changed name of url argument, as kwargs included url --- cogs/playlist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/playlist.py b/cogs/playlist.py index fcbf8bf..bab62ed 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -17,15 +17,15 @@ class VoicePlayer: # 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 # However, it should not ever be, as we overwrite this object with the StreamPlayer in our audio task - def __init__(self, url, **kwargs): - self.url = url + def __init__(self, song, **kwargs): + self.url = song self.views = kwargs.get('view_count') self.is_live = bool(kwargs.get('is_live')) self.likes = kwargs.get('likes') self.dislikes = kwargs.get('dislikes') self.duration = kwargs.get('duration') self.uploader = kwargs.get('uploader') - if 'twitch' in url: + if 'twitch' in song: self.title = kwargs.get('description') self.description = None else: