title: How to solve this issue while start youtube video download directly instead of playing in the browser
body: <p>Facing issues while starting youtube video downloads directly instead of playing in the browser.</p>
  <p>I am working youtube downloader website which provides direct youtube links to users.</p>
  <p>The sample download link for 720p video is like this :</p>
  <pre><code>https://r1---sn-q0c7rn76.googlevideo.com/videoplayback?expire=1595113918&amp;ei=Xi0TX8roK_7oxN8P3a2UuAs&amp;ip=34.249.118.49&amp;id=o-APhQXWUkgI-5LLZFkyXiauEloMZSsD2EU-mLNEVrdFkW&amp;itag=22&amp;source=youtube&amp;requiressl=yes&amp;mh=x-&amp;mm=31%2C26&amp;mn=sn-q0c7rn76%2Csn-aigzrn7s&amp;ms=au%2Conr&amp;mv=u&amp;mvi=1&amp;pl=23&amp;vprv=1&amp;mime=video%2Fmp4&amp;ratebypass=yes&amp;dur=3231.010&amp;lmt=1575857773351740&amp;mt=1595091905&amp;fvip=1&amp;beids=9466587&amp;c=WEB&amp;txp=5431432&amp;sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&amp;sig=AOq0QJ8wRQIhALE93ROecAk4QLvdgUKfwGUAHYHpxyTzaSDMMNMSe_npAiBU8oX1fZ5M_MjukqXY1gCYnojaYBpz2hcm_gD8jvkmyw%3D%3D&amp;lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&amp;lsig=AG3C_xAwRAIgHf-Gnzqo9ffjJThHM7r4bpLA-hfD_agNHv3hvwVouNECIHwR3fja1WdZsb9SCUtAlJ4CSkjWaBsUy6toAPd2luxV
  </code></pre>
  <p>suppose I add this at the end of the URL : &quot;&amp;title=mytitle&quot; the video will start to download automatically in users machines with the file name as &quot;mytitle&quot; when they click the download button on my website.</p>
  <p>However, this works only for 720p videos and nothing else.It does not work for m4a(audio only file) The m4a file starts playing in a new browser tab even if I add &quot;&amp;title=mytitle&quot;. The sample of m4a file is like this :</p>
  <pre><code>https://r1---sn-q0c7rn76.googlevideo.com/videoplayback?expire=1595113918&amp;ei=Xi0TX8roK_7oxN8P3a2UuAs&amp;ip=34.249.118.49&amp;id=o-APhQXWUkgI-5LLZFkyXiauEloMZSsD2EU-mLNEVrdFkW&amp;itag=140&amp;source=youtube&amp;requiressl=yes&amp;mh=x-&amp;mm=31%2C26&amp;mn=sn-q0c7rn76%2Csn-aigzrn7s&amp;ms=au%2Conr&amp;mv=u&amp;mvi=1&amp;pl=23&amp;vprv=1&amp;mime=audio%2Fmp4&amp;gir=yes&amp;clen=52291395&amp;dur=3231.010&amp;lmt=1575857698539497&amp;mt=1595091905&amp;fvip=1&amp;keepalive=yes&amp;beids=9466587&amp;c=WEB&amp;txp=5431432&amp;sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&amp;sig=AOq0QJ8wRQIgFvKaAcMeekReINF85eWcO_cQsXW8qLzyxv_S_faFx0sCIQCKODNGMgaiDQxjyNoU1fFPJ0CDAB-u5vE2NdoRSjHYbQ%3D%3D&amp;lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&amp;lsig=AG3C_xAwRAIgHf-Gnzqo9ffjJThHM7r4bpLA-hfD_agNHv3hvwVouNECIHwR3fja1WdZsb9SCUtAlJ4CSkjWaBsUy6toAPd2luxV&amp;ratebypass=yes
  </code></pre>
  <p>I want to rename and start the download automatically when the user clicks download button .So i need to know how to modify the URL to achieve this goal .</p>