title: How do I get the video url with ytdl-core?
body: <pre><code>const { YTSearcher } = require('ytsearcher');
   
  const searcher = new YTSearcher({
      key: config.YOUTUBE_API_KEY,
      revealed: true
  });
  
  let result = await searcher.search(args.join(&quot; &quot;), { type: &quot;video&quot; })
  
              var songInfo = await ytdl.getInfo(result.first.url)
              var song = {
                  title: songInfo.videoDetails.title,
                  url: songInfo.videoDetails.video_url
              };
  </code></pre>
  <p>I'm using ytdl-core to play music using a discord bot, when I try to play a song it sends the error &quot;Cannot read property 'url' of underfined&quot;</p>