title: Music Bot Not Queueing Songs
body: <p>I am using discord.py rewrite and I am making a do it all bot with cogs. One of the cogs I am using incorporates a music bot into it. I have the music playing but i'm trying to add a queue and any time it tries to add to the queue it says it does, but then after the current song is over it doesn't play anything. No errors, no anything. It just doesn't play. Any ideas</p>
  <p>Code:</p>
  <pre><code>@commands.command()
  async def play(self, ctx, url):
      async with ctx.typing():
          player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=True)
          if len(self.queue) == 0:
              self.queue[len(self.queue)] = player
              self.start_playing(ctx.voice_client, player)
              await ctx.send(f':mag_right: **Searching for** ``' + url + '``\n&lt;:youtube:763374159567781890&gt; **Now Playing:** ``{}'.format(player.title) + &quot;``&quot;)
          else:
              self.queue[len(self.queue)] = player
              await ctx.send(f':mag_right: **Searching for** ``' + url + '``\n&lt;:youtube:763374159567781890&gt; **Added to queue:** ``{}'.format(player.title) + &quot;``&quot;)
  def start_playing(self, voice_client, player):
      self.queue[0] = player
      i = 0
      while i &lt;  len(self.queue):
          try:
              voice_client.play(self.queue[i], after=lambda e: print(f' has finished playing.'))
  
          except:
              pass
          i += 1
  </code></pre>