From 630bee8cb6b216db627e24cd4a2c44ee173bfaf9 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 19 Nov 2016 10:49:05 -0500 Subject: [PATCH] [Audio] Fix [p]song with local tracks (#479) --- cogs/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/audio.py b/cogs/audio.py index f97cf4b51..7bff9b108 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -122,7 +122,7 @@ class Song: self.id = kwargs.pop('id', None) self.url = kwargs.pop('url', None) self.webpage_url = kwargs.pop('webpage_url', "") - self.duration = kwargs.pop('duration', "") + self.duration = kwargs.pop('duration', 60) class Playlist: @@ -1158,7 +1158,7 @@ class Audio: await send_cmd_help(ctx) @local.command(name="start", pass_context=True, no_pm=True) - async def play_local(self, ctx, name): + async def play_local(self, ctx, *, name): """Plays a local playlist""" server = ctx.message.server author = ctx.message.author