Previously, the runtime could be atrocious for longer inputs.
The md5 sum has changed repeatedly, and we check whether it looks like a video anyways nowadays.
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings. For now it's sufficient to just disable comment support altogether. Fixes #4976, fixes #4979, fixes #4980, fixes #4981, fixes #4982. Closes #4977.
We're seeing this in the tests¹ right now, which do not terminate. ¹ https://travis-ci.org/jaimeMF/youtube-dl/jobs/51135858
Instead of every downloader calling two helper functions, let our progress report be an ordinary progress hook like everyone else's. Closes #4875.
So that we don't have to implement all the methods used by the cookiejar.
curl doesn't follow redirections by default
filesize and tbr should correlate, so it doesn't make sense to treat them differently.