title: Youtube-dl KeyError: 'entries'
body: <p>I tried to get some infos of a video with discord.py when &quot;+dl https://youtube......&quot; is executed, the program download in mp3 the youtube link and send it with : video name, duration and id but i get an error during execution :</p>
  <pre><code>
      ydl_opts = {
      'outtmpl': './SomethingMore/dl.mp3',
      'format': 'bestaudio/best',
      'noplaylist': True,
      'default_search' : 'ytsearch',
      'postprocessors': [{
      'key': 'FFmpegExtractAudio',
      'preferredcodec': 'mp3',
      'preferredquality': '192',
      }]}
  
      Link = ctx.message.content
      Link = Link.strip('+dl ')
  
      with youtube_dl.YoutubeDL(ydl_opts) as ydl:
  
          playlist_dict = ydl.extract_info(Link, download=False)
          
          for video in playlist_dict['entries']:
                   
              if not video:
                  print('ERROR: Unable to get info. Continuing...')
                  continue
   
              video_title = video.get(&quot;title&quot;)
              video_duration = video.get(&quot;duration&quot;)
              video_id = video.get(&quot;id&quot;)
              
  
          await ctx.channel.send('Download of '+ video_title +' is starting, please wait a minute')
  
          try:
              ydl.download([Link])
              await ctx.channel.send('Download ended')
  </code></pre>
  <p>Here is the error :</p>
  <pre><code>Ignoring exception in command dl:
  Traceback (most recent call last):
    File &quot;C:\Users\Zarcross\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py&quot;, line 85, in wrapped
      ret = await coro(*args, **kwargs)
    File &quot;h:\Users\Zarcross\Desktop\Discord\main.py&quot;, line 267, in dl
      for video in playlist_dict['entries']:
  KeyError: 'entries'
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File &quot;C:\Users\Zarcross\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\bot.py&quot;, line 903, in invoke
      await ctx.command.invoke(ctx)
    File &quot;C:\Users\Zarcross\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py&quot;, line 859, in invoke
      await injected(*ctx.args, **ctx.kwargs)
    File &quot;C:\Users\Zarcross\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py&quot;, line 94, in wrapped
      raise CommandInvokeError(exc) from exc
  discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'entries'
  </code></pre>