When I run this snippet and it asks for the url, I copy it from the browser, but it gets spaced out.
What I copied: https://www.youtube.com/watch?v=dQw4w9WgXcQ
How it gets pasted: https://www.youtube . c om / w a t c h ? v = d Q w 4 w 9 W g X c Q
In result, youtube-dl does not recognise the url, more precisely it only recognises the first half, until the first space:
[generic] www: Requesting header
WARNING: Could not send HEAD request to https://www.youtube: <urlopen error [Errno -2] Name or service not known>
[generic] www: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))
exit status 1
I made the following snippet for Youtube-DL:
When I run this snippet and it asks for the url, I copy it from the browser, but it gets spaced out. What I copied:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
How it gets pasted:https://www.youtube . c om / w a t c h ? v = d Q w 4 w 9 W g X c Q
In result, youtube-dl does not recognise the url, more precisely it only recognises the first half, until the first space:Why is it stretching out the URL?