[Audio] Fix [p]song with local tracks (#479)

This commit is contained in:
Will 2016-11-19 10:49:05 -05:00 committed by Twentysix
parent 59d4604462
commit 630bee8cb6

View File

@ -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